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') {