From 81e1b297b1fabec596c1cb7187ce2d6199026429 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Thu, 30 Nov 2023 16:51:10 +0800
Subject: [PATCH] 模拟考试成绩查询

---
 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