From 51b3a33990ad12cd1d24b42b10275a049a5fecda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Fri, 24 Mar 2023 14:59:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/user/loginUserSlice.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/user/loginUserSlice.ts b/src/store/user/loginUserSlice.ts index 29f10f4..f69f23a 100644 --- a/src/store/user/loginUserSlice.ts +++ b/src/store/user/loginUserSlice.ts @@ -8,7 +8,7 @@ type UserStoreInterface = { let defaultValue: UserStoreInterface = { user: null, - departments: null, + departments: [], isLogin: false, }; @@ -25,7 +25,7 @@ const loginUserSlice = createSlice({ }, logoutAction(stage) { stage.value.user = null; - stage.value.departments = null; + stage.value.departments = []; stage.value.isLogin = false; }, },