仿真订阅未清除调整

This commit is contained in:
fan 2022-12-02 14:45:58 +08:00
parent 1e241b3460
commit 055f39b070

View File

@ -98,13 +98,11 @@ export default {
centralizedStationList: [],
centralizedStationMap: {},
loading: false,
isFirst: true
isFirst: true,
group: ''
};
},
computed: {
group() {
return this.$route.query.group;
},
mapId() {
return this.$route.query.mapId;
},
@ -151,6 +149,7 @@ export default {
}
},
mounted() {
this.group = this.$route.query.group;
this.isFirst = true;
this.subscribe('COMMON');
},
@ -203,6 +202,7 @@ export default {
}
},
clearSubscribe() {
console.log('***************');
clearSubscribe(getTopic('COMMON', this.group));
clearSubscribe(getTopic('ATS_STATUS', this.group));
clearSubscribe(getTopic('STATE', this.group));