From 8714e13ef711b5173f81697b8891382b61608771 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 27 五月 2024 10:41:10 +0800
Subject: [PATCH] 优化

---
 src/store/modules/user.js       |    1 +
 src/views/user/student/edit.vue |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index fb4e831..dce73fd 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -28,6 +28,7 @@
   clearLogin (state) {
     Cookies.remove('adminUserName')
     Cookies.remove('adminUserInfo')
+    sessionStorage.removeItem('deptAdmin')
   }
 }
 
diff --git a/src/views/user/student/edit.vue b/src/views/user/student/edit.vue
index 9864dc7..9e8ac24 100644
--- a/src/views/user/student/edit.vue
+++ b/src/views/user/student/edit.vue
@@ -70,7 +70,7 @@
         sex: '',
         birthDay: null,
         phone: null,
-        deptIds: '',
+        deptIds: [],
         tagIds: []
       },
       formLoading: false,

--
Gitblit v1.8.0