src/views/visual/mapView/index.vue
@@ -87,6 +87,7 @@ this.showEarth = true; this.mapViewStart(); this.$busEvent.$on('CHANGE_MAPINFO', (res) => { this.setMapInfo(res); }); }, @@ -100,12 +101,15 @@ methods: { setMapInfo(res) { // console.log(res); if (res.length > 0) { this.childObj = null if (res && res.length > 0) { this.childObj = res; setTimeout(() => { this.$nextTick(() => { this.$refs && this.$refs.mapInfo && this.$refs.mapInfo.open(); }, 200); }) } else { return } }, mapViewStart() {