Commit b9ac150d authored by 赵啸非's avatar 赵啸非

添加应用分类列表

parent 6d6ba6f1
...@@ -151,9 +151,11 @@ public class SiteTreeSelect implements Serializable { ...@@ -151,9 +151,11 @@ public class SiteTreeSelect implements Serializable {
node.setIcon(jsonObject.getString("icon")); node.setIcon(jsonObject.getString("icon"));
JSONArray jsonArray = jsonObject.getJSONArray("children"); JSONArray jsonArray = jsonObject.getJSONArray("children");
List<SiteTreeSelect> children = new ArrayList<>(); List<SiteTreeSelect> children = new ArrayList<>();
for (int i = 0; i < jsonArray.size(); i++) { if(!ObjectUtils.isEmpty(jsonArray)){
SiteTreeSelect child = JSON.parseObject(jsonArray.getJSONObject(i).toJSONString(), SiteTreeSelect.class); for (int i = 0; i < jsonArray.size(); i++) {
children.add(child); SiteTreeSelect child = JSON.parseObject(jsonArray.getJSONObject(i).toJSONString(), SiteTreeSelect.class);
children.add(child);
}
} }
node.setChildren(children); node.setChildren(children);
return node; return node;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment