tangning 8 bulan lalu
induk
melakukan
e92f16f7a3
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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),
 });