mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-24 07:01:31 +08:00
存储部门信息
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { createSlice } from "@reduxjs/toolkit";
|
||||
import { getDepKey } from "../../utils/index";
|
||||
|
||||
type UserStoreInterface = {
|
||||
user: null;
|
||||
@@ -10,7 +11,7 @@ type UserStoreInterface = {
|
||||
let defaultValue: UserStoreInterface = {
|
||||
user: null,
|
||||
departments: [],
|
||||
currentDepId: 0,
|
||||
currentDepId: Number(getDepKey()) || 0,
|
||||
isLogin: false,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user