From a85f1d8f5eeda1ab19901e75e88b17347ea3b951 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 23 Mar 2020 13:52:50 +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/newMap/jlmapNew/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/newMap/jlmapNew/index.vue b/src/views/newMap/jlmapNew/index.vue index 470ae0433..799737373 100644 --- a/src/views/newMap/jlmapNew/index.vue +++ b/src/views/newMap/jlmapNew/index.vue @@ -133,7 +133,7 @@ export default { $route() { this.mapViewLoaded(true); }, - '$store.training.state.prdType': function (val) { + '$store.state.training.prdType': function (val) { this.changePrdType(val); } }, @@ -349,7 +349,7 @@ export default { }, // 综合演练切换现地行调模式 changePrdType(val) { - const nameList = Object.keys(this.$store.state.map.map); + const nameList = Object.keys(this.$store.state.map.map || {}); let list = []; nameList.forEach(item => { if (item !== 'skinVO') {