refactor: 未获取地图数据,控制台不用报错

This commit is contained in:
wangjiahao 2021-12-28 18:44:03 +08:00
parent dfe1fd4859
commit 63f87ad59d

View File

@ -543,7 +543,7 @@ export default {
const nextNode = currentNode.children.find(item => item.name === name)
this.currentAcreaNode = nextNode
const current = this.$refs[this.element.propValue.id]
current && current.registerDynamicMap && current.registerDynamicMap(nextNode.code)
nextNode && current && current.registerDynamicMap && current.registerDynamicMap(nextNode.code)
}
},