zhaoxiaohai %!s(int64=3) %!d(string=hai) anos
pai
achega
6a40bc8612
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
     //排除不是数组 在深入查找一级