From d8f6c671a613b841566c8d7b1f36eb2bb9640ea9 Mon Sep 17 00:00:00 2001
From: DESKTOP-CVS3R96\我恁爹 <11>
Date: Tue, 15 Nov 2022 04:15:27 +0800
Subject: [PATCH] 多于元

---
 src/store/index.js |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/store/index.js b/src/store/index.js
index 4c83cf5..d2ae04d 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -6,8 +6,9 @@
 
 Vue.use(Vuex)
 
-const state = {
+let state = {
   className: 'black',
+  theme:'red',
   userInfo: { // 用户信息
   },
   user: {},
@@ -17,6 +18,10 @@
   hide: false,
   select: '/home', // 菜单选择
   token: 'USER62CCF5221CD752269D47681374DD0916',
+  elAlertShow: false,
+  elAlertText: '',
+  dialogVisible: false,
+  elAlertType:  'warning',
   settingForm: { // 产品配置
     futuresDisplay: false,
     indexDisplay: false,
@@ -28,6 +33,17 @@
 export default new Vuex.Store({
   state,
   actions: {},
-  mutations: {},
+  mutations: {
+    elAlertShow(state, payload) {
+      state.elAlertShow = payload.elAlertShow;
+      state.elAlertText = payload.elAlertText;
+      if(payload.elAlertType){
+        state.elAlertType = payload.elAlertType;
+      }
+    },
+    dialogVisible(state, payload) {
+      state.dialogVisible = payload;
+    }
+  },
   getters: {}
 })

--
Gitblit v1.9.3