fix: 🐛 pageSearch组件,权限校验不生效修复
This commit is contained in:
1 parent
6bed716c0a
commit
8afa82f911
3 files changed
+11
-9
No files matched your search
@@ -18,8 +18,8 @@ export const hasPerm: Directive = {
|
||||
|
||||
const { roles, perms } = useUserStore().userInfo;
|
||||
|
||||
// 超级管理员拥有所有权限
|
||||
if (roles.includes("ROOT")) {
|
||||
// 超级管理员拥有所有权限,如果是”*:*:*”权限标识,则不需要进行权限校验
|
||||
if (roles.includes("ROOT") || requiredPerms.includes("*:*:*")) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user