仿真状态订阅放在mounted

This commit is contained in:
fan 2023-01-16 10:45:20 +08:00
parent a67d2abf65
commit 807220e7b5

View File

@ -145,7 +145,6 @@ export default {
},
watch: {
'$store.state.map.mapViewLoadedCount': function (val) { //
this.subscribe('STATE');
this.subscribe('ATS_STATUS');
if (this.isFirst) {
this.$store.dispatch('training/setMapDefaultState');
@ -183,6 +182,7 @@ export default {
this.group = this.$route.query.group;
this.isFirst = true;
this.subscribe('COMMON');
this.subscribe('STATE');
},
beforeDestroy() {
this.clearSubscribe();