From ae92f41d5c59f5cdb0097bf549b6c3e3e8e4eb3b Mon Sep 17 00:00:00 2001
From: DESKTOP-CVS3R96\我恁爹 <11>
Date: Sat, 12 Nov 2022 00:28:40 +0800
Subject: [PATCH] 111
---
src/store/index.js | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/store/index.js b/src/store/index.js
index 4c83cf5..f9a2643 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,9 @@
hide: false,
select: '/home', // 菜单选择
token: 'USER62CCF5221CD752269D47681374DD0916',
+ elAlertShow: false,
+ elAlertText: '',
+ elAlertType: 'warning',
settingForm: { // 产品配置
futuresDisplay: false,
indexDisplay: false,
@@ -28,6 +32,15 @@
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;
+ }
+
+ }
+ },
getters: {}
})
--
Gitblit v1.9.3