From affe2b63e194ccdf8e6fbb2dffb6f47b8f12896c Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 27 Sep 2021 11:07:02 +0800
Subject: [PATCH] 浮动隐藏菜单栏

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

diff --git a/src/store/modules/common.js b/src/store/modules/common.js
index 0cc276d..38bd3a1 100644
--- a/src/store/modules/common.js
+++ b/src/store/modules/common.js
@@ -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