From a4e6119f6d000f75124111a6f02aa2cd0c096944 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 15:02:18 +0800 Subject: [PATCH] =?UTF-8?q?store=E7=9A=84user=E5=88=9D=E5=A7=8B=E5=80=BC?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/user/loginUserSlice.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/store/user/loginUserSlice.ts b/src/store/user/loginUserSlice.ts index f69f23a..9f7e7da 100644 --- a/src/store/user/loginUserSlice.ts +++ b/src/store/user/loginUserSlice.ts @@ -1,8 +1,14 @@ import { createSlice } from "@reduxjs/toolkit"; +type UserInterface = { + id: number; + name: string; + email: string; + avatar: string; +}; type UserStoreInterface = { - user: any; - departments: any; + user: UserInterface | null; + departments: string[]; isLogin: boolean; };