From 0c94a693ab94ec4e0e44e4e0bee636bc8bb3ff1e Mon Sep 17 00:00:00 2001
From: 钟日健 <5689795+arsn@user.noreply.gitee.com>
Date: Wed, 16 Mar 2022 14:09:33 +0800
Subject: [PATCH] deploy 修改

---
 src/store/modules/common.js |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/store/modules/common.js b/src/store/modules/common.js
index 0cc276d..e7ecff6 100644
--- a/src/store/modules/common.js
+++ b/src/store/modules/common.js
@@ -40,8 +40,13 @@
     SET_SHADE: (state, active) => {
       state.isShade = active;
     },
-    SET_COLLAPSE: (state) => {
-      state.isCollapse = !state.isCollapse;
+    SET_COLLAPSE: (state, val = 3) => {
+      // console.log(val)
+      if (val == 3) {
+        state.isCollapse = !state.isCollapse;
+      } else {
+        state.isCollapse = val;
+      }
     },
     SET_FULLSCREN: (state) => {
       state.isFullScren = !state.isFullScren;

--
Gitblit v1.9.3