|
@@ -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;
|
|
}
|
|
}
|
|
|
|
|