From a27d8f4c1dc944131c6d0933588a206ba6f62771 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 15 Nov 2019 17:15:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/designPlatform/mapPreview.vue | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/views/designPlatform/mapPreview.vue b/src/views/designPlatform/mapPreview.vue index e3e32606e..fc0614373 100644 --- a/src/views/designPlatform/mapPreview.vue +++ b/src/views/designPlatform/mapPreview.vue @@ -46,13 +46,10 @@ export default { }, '$store.state.app.windowSizeCount': function() { this.setWindowSize(); + }, + '$store.state.map.mapViewLoadedCount':function() { + this.$store.dispatch('map/setTrainWindowShow', false); } - // '$store.state.socket.simulationReset': function (val) { - // debugger; - // // if (val) { - // // this.simulationReset(val); - // // } - // } }, async beforeDestroy() { await this.$store.dispatch('map/mapClear'); @@ -77,7 +74,6 @@ export default { this.$store.dispatch('training/over'); this.$store.dispatch('training/setMapDefaultState'); this.$store.dispatch('map/clearJlmapTrainView'); - this.$store.dispatch('map/setTrainWindowShow', false); }); } catch (error) { this.$messageBox(`获取地图数据失败: ${error.message}`);