tangning 4 tháng trước cách đây
mục cha
commit
55a7ba8f8a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/store/user.ts

+ 1 - 1
src/store/user.ts

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