mirror of
https://github.com/certd/certd.git
synced 2026-05-15 12:37:30 +08:00
chore:
This commit is contained in:
@@ -37,7 +37,7 @@ export const useUserStore = defineStore({
|
||||
return this.token || LocalStorage.get(TOKEN_KEY);
|
||||
},
|
||||
isAdmin(): boolean {
|
||||
return this.getUserInfo.id === 1 || this.getUserInfo.roles?.includes(1);
|
||||
return this.getUserInfo.roleIds?.includes(1) || this.getUserInfo.id === 1;
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
||||
Reference in New Issue
Block a user