zhaoxiaohai 2 年之前
父节点
当前提交
8fa0e6b77c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      utils/queryPermissions.js

+ 1 - 0
utils/queryPermissions.js

@@ -10,6 +10,7 @@ let getObjectKey = (object, value) => {
 let name = ['modules', 'apps'];
 
 function query(list, tier, need) {
+    if (!list.some(v => v.systemname == tier[0])) return [];
     // if (!list) return;
     if (list.length == 0) return;
     //排除不是数组 在深入查找一级