fix: 优化审计
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 3m42s

This commit is contained in:
luo
2026-08-11 16:47:58 +08:00
parent 9599a4d52b
commit 33485b137f
49 changed files with 1263 additions and 212 deletions

View File

@@ -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 => {