mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-22 07:17:15 +08:00
store的user初始值调整
This commit is contained in:
parent
51b3a33990
commit
a4e6119f6d
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user