This commit is contained in:
@@ -51,7 +51,7 @@ export const useUserStore = defineStore(
|
||||
}
|
||||
|
||||
// 检查是否是超级管理员
|
||||
const isSuperAdmin = computed(() => info.value.user_type === 1)
|
||||
const isSuperAdmin = computed(() => Number(info.value.user_type) === 1)
|
||||
|
||||
// 检查是否有某个权限
|
||||
const hasPermission = (permission: string): boolean => {
|
||||
|
||||
Reference in New Issue
Block a user