存储部门信息

This commit is contained in:
禺狨
2023-04-17 11:34:14 +08:00
parent da56cd085e
commit a0754cde00
3 changed files with 29 additions and 2 deletions

View File

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