仿真状态订阅放在mounted
This commit is contained in:
parent
a67d2abf65
commit
807220e7b5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user