This commit is contained in:
zhuoda
2024-01-08 19:52:39 +08:00
parent 8dc663d885
commit 192e959d14
1126 changed files with 13783 additions and 68273 deletions

View File

@@ -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;