mirror of
https://github.com/certd/certd.git
synced 2026-05-17 05:37:30 +08:00
fix: 修复第三方登录丢失state时无法在用户信息页面绑定第三方账号的bug
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user