From b35e9e4aebcec3b36ccc7cab4639ff2ad74aea97 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Sat, 23 Mar 2024 18:10:25 +0800
Subject: [PATCH] 1
---
src/store/index.js | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/src/store/index.js b/src/store/index.js
index 625bbe1..d2ae04d 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,10 @@
hide: false,
select: '/home', // 菜单选择
token: 'USER62CCF5221CD752269D47681374DD0916',
+ elAlertShow: false,
+ elAlertText: '',
+ dialogVisible: false,
+ elAlertType: 'warning',
settingForm: { // 产品配置
futuresDisplay: false,
indexDisplay: false,
@@ -29,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