|
@@ -48,9 +48,8 @@ export const getUserPagging = async (params: PaggingReq<Params>) =>
|
|
|
export const getUsers = async (deptId?: string) =>
|
|
|
(await axios.get<UserInfo[]>(getUserListSelect, { params: { deptId } })).data;
|
|
|
// 当前用户的信息
|
|
|
-
|
|
|
export const user = ref({
|
|
|
- token: getLocal("token", {}) || "",
|
|
|
+ token: localStorage.getItem('token') || "",
|
|
|
info: getLocal("info", {} as UserInfo),
|
|
|
});
|
|
|
|