store的user初始值调整

This commit is contained in:
禺狨 2023-03-24 15:02:18 +08:00
parent 51b3a33990
commit a4e6119f6d

View File

@ -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;
};