This commit is contained in:
sanfan.hx
2019-07-31 17:36:56 +08:00
parent c9a9a991b0
commit a75269d383
8 changed files with 98 additions and 38 deletions

View File

@ -297,7 +297,6 @@ class WidgetTree {
current = CategoryComponent(id: 0, name: 'root', parentId: null, children: []);
}
json.forEach((item) {
// 归属分类级别
if (['root', 'category'].indexOf(item['type']) != -1) {
CategoryComponent cate = CategoryComponent.fromJson(item);