From cf0d36bbe155ecdfd8bca429666405e830d0dc7a Mon Sep 17 00:00:00 2001
From: XIGUASSR <623844246@qq.com>
Date: Sat, 12 Nov 2022 04:22:49 +0800
Subject: [PATCH] 最新
---
src/store/index.js | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/store/index.js b/src/store/index.js
index 625bbe1..f9a2643 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -6,7 +6,7 @@
Vue.use(Vuex)
-const state = {
+let state = {
className: 'black',
theme:'red',
userInfo: { // 用户信息
@@ -18,6 +18,9 @@
hide: false,
select: '/home', // 菜单选择
token: 'USER62CCF5221CD752269D47681374DD0916',
+ elAlertShow: false,
+ elAlertText: '',
+ elAlertType: 'warning',
settingForm: { // 产品配置
futuresDisplay: false,
indexDisplay: false,
@@ -29,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