fix: 修复地图报错导致实体下拉无法收回的问题

This commit is contained in:
chenjinsong
2022-05-24 18:10:44 +08:00
parent 817cea4898
commit 85a1e83fc6

View File

@@ -530,7 +530,9 @@ export default {
}
},
beforeUnmount () {
this.polygonSeries.mapPolygons.template.events.off('hit', this.mapBlockHitEvent)
if (this.polygonSeries) {
this.polygonSeries.mapPolygons.template.events.off('hit', this.mapBlockHitEvent)
}
this.polygonSeries = null
this.countrySeries = null
this.worldImageSeries = null