src/views/Tools/LayerTree.vue
@@ -709,13 +709,13 @@ sessionStorage.setItem("checkedLayers", JSON.stringify(checkedLayers)); var res = this.setTreeData(val); for (var i in res) { res[i].children = res[i].children.filter((val) => { if (val.children != null) { return val; } }); } // for (var i in res) { // res[i].children = res[i].children.filter((val) => { // if (val.children != null) { // return val; // } // }); // } this.treeData = res; this.$refs.tree.setCheckedKeys(checkKey); },