mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-23 01:16:32 +08:00
store的user初始值调整
This commit is contained in:
parent
51b3a33990
commit
a4e6119f6d
@ -1,8 +1,14 @@
|
|||||||
import { createSlice } from "@reduxjs/toolkit";
|
import { createSlice } from "@reduxjs/toolkit";
|
||||||
|
|
||||||
|
type UserInterface = {
|
||||||
|
id: number;
|
||||||
|
name: string;
|
||||||
|
email: string;
|
||||||
|
avatar: string;
|
||||||
|
};
|
||||||
type UserStoreInterface = {
|
type UserStoreInterface = {
|
||||||
user: any;
|
user: UserInterface | null;
|
||||||
departments: any;
|
departments: string[];
|
||||||
isLogin: boolean;
|
isLogin: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user