Browse Source

权限查询

zhaoxiaohai 3 years ago
parent
commit
15dea57c3f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      utils/queryPermissions.js

+ 1 - 2
utils/queryPermissions.js

@@ -10,9 +10,8 @@ let getObjectKey = (object, value) => {
 let name = ['modules', 'apps'];
 
 function query(list, tier, need) {
-    if (!list) return;
+    // if (!list) return;
     if (list.length == 0) return;
-    console.log("权限", list);
     //排除不是数组 在深入查找一级
     if (list.constructor !== Array) return query(list[Object.keys(list).filter((key) => name.includes(key))], tier, need);
     //拿到当前层的数组 如果不是最后一层 继续查找