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