|
|
@@ -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);
|
|
|
//拿到当前层的数组 如果不是最后一层 继续查找
|