mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-23 03:49:42 +08:00
store的user初始值调整
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user