This commit is contained in:
owenchen committed 2026-09-04 14:19:18 +08:00
1 parent b485837fc8
commit 24816ba81b
6 files changed
+802 -7

No files matched your search

+5 -6
View File
@@ -9,7 +9,7 @@ const JWT_STORAGE_ID = "x-jwt-storage-id";
const JWT_REFRESHKEY_STORAGE_ID = "x-jwt-refresh-key-storage-id";
const LOGIN_PROFILE_STORAGE_ID = "x-login-profile-storage-id";
const LOCALE_ID = "x-locale-id";
const ROUTES = "x-routes";
export const useLoginProfileStore = defineStore("loginProfile", {
state: (): {
loginProfile: LoginProfile;
@@ -96,11 +96,10 @@ export const useLoginProfileStore = defineStore("loginProfile", {
return (JSON.parse(str) as LoginProfile).PermissionInfo;
},
clearStorage() {
storage.set(JWT_STORAGE_ID, null);
storage.set(JWT_REFRESHKEY_STORAGE_ID, null);
storage.set(LOGIN_PROFILE_STORAGE_ID, null);
storage.remove(JWT_STORAGE_ID);
storage.remove(JWT_REFRESHKEY_STORAGE_ID);
storage.remove(LOGIN_PROFILE_STORAGE_ID);
storage.remove(ROUTES);
},
},
});