From 8e2a42e4a2da78f9cda9fa3e7732a0ef72f0c906 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 12 Nov 2021 09:29:02 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_enterprises
---
src/store/modules/common.js | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/store/modules/common.js b/src/store/modules/common.js
index 9b99ee9..38bd3a1 100644
--- a/src/store/modules/common.js
+++ b/src/store/modules/common.js
@@ -9,7 +9,7 @@
state: {
language: getStore({ name: 'language' }) || 'zh',
- isCollapse: false,
+ isCollapse: true,//默认菜单是否打开
isFullScren: false,
isMenu: true,
isShade: false,
@@ -40,8 +40,12 @@
SET_SHADE: (state, active) => {
state.isShade = active;
},
- SET_COLLAPSE: (state) => {
- state.isCollapse = !state.isCollapse;
+ SET_COLLAPSE: (state, val = 3) => {
+ if (val == 3) {
+ state.isCollapse = !state.isCollapse;
+ } else {
+ state.isCollapse = val;
+ }
},
SET_FULLSCREN: (state) => {
state.isFullScren = !state.isFullScren;
--
Gitblit v1.9.3