This commit is contained in:
yanran200730
2022-01-18 16:09:37 +08:00
parent 55b6b0c94a
commit cd8aef1c06
4 changed files with 59 additions and 2 deletions

View File

@@ -104,6 +104,10 @@ export default {
return this.instance.post(`/app/appgirdinfo/listAll`).then((res) => {
if (res.code == 0) {
this.treeObj.treeList = res.data;
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(res.data[0].id)
})
}
})
},
@@ -129,7 +133,6 @@ export default {
},
handleNodeClick(val) {
let path = [];
console.log(val)
this.currInfo = val
if (val?.points?.length > 0) {
path = val.points.map(e => [e.lng, e.lat])