mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-12-27 01:46:02 +08:00
v3.0.0
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
import { useUserStore } from '/@/store/modules/system/user';
|
||||
import lodash from 'lodash';
|
||||
import _ from 'lodash';
|
||||
|
||||
export function privilegeDirective(el, binding) {
|
||||
// 超级管理员
|
||||
@@ -22,7 +22,7 @@ export function privilegeDirective(el, binding) {
|
||||
return false;
|
||||
}
|
||||
// 如果有权限,删除节点
|
||||
if (!lodash.some(userPointsList,['webPerms',binding.value])) {
|
||||
if (!_.some(userPointsList, ['webPerms', binding.value])) {
|
||||
el.parentNode.removeChild(el);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user