mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-12-27 09:56:02 +08:00
更正前端权限插件的判断
This commit is contained in:
@@ -21,7 +21,7 @@ export function privilegeDirective(el, binding) {
|
||||
if (!userPointsList) {
|
||||
return false;
|
||||
}
|
||||
// 如果有权限,删除节点
|
||||
// 如果没有权限,删除节点
|
||||
if (!_.some(userPointsList, ['webPerms', binding.value])) {
|
||||
el.parentNode.removeChild(el);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user