1
0
tangning 8 ماه پیش
والد
کامیت
e92f16f7a3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/store/user.ts

+ 1 - 1
src/store/user.ts

@@ -50,7 +50,7 @@ export const getUsers = async (deptId?: string) =>
 // 当前用户的信息
 
 export const user = ref({
-  token: getLocal(`token`, ""),
+  token: localStorage.getItem("token") || "",
   info: getLocal("info", {} as UserInfo),
 });