fix: 修复第三方登录丢失state时无法在用户信息页面绑定第三方账号的bug

This commit is contained in:
xiaojunnuo
2026-05-13 23:47:31 +08:00
parent 4681ec9008
commit 45dedf5bc7
2 changed files with 16 additions and 8 deletions
@@ -38,6 +38,9 @@ export const useUserStore = defineStore({
getToken(): string {
return this.token || LocalStorage.get(TOKEN_KEY);
},
isLogined(): boolean {
return !!this.getToken;
},
isAdmin(): boolean {
return this.getUserInfo.roleIds?.includes(1) || this.getUserInfo.id === 1;
},