lrf402788946 hace 4 años
padre
commit
fe273e91fd
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      app/service/system/dictionary.js

+ 5 - 0
app/service/system/dictionary.js

@@ -56,6 +56,11 @@ class DictionaryService extends CrudService {
     if (dicList && dicList.length > 0) {
     if (dicList && dicList.length > 0) {
       list = await this.toFindChildren(dicList);
       list = await this.toFindChildren(dicList);
     }
     }
+    const { categroy } = condition;
+    if (categroy) {
+      list = _.head(list);
+      list = _.get(list, 'children', []);
+    }
     return list;
     return list;
   }
   }