【仿真功能】iscs界面,屏蔽门系统切换车站时以前是有订阅的,现在没了
This commit is contained in:
parent
9759cb7cc1
commit
2aae79d71e
@ -46,6 +46,12 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
'stationId': function (newVal, oldVal) {
|
||||||
|
this.clearSubscribe(oldVal);
|
||||||
|
this.subscribe(newVal);
|
||||||
|
}
|
||||||
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.clearSubscribe(this.stationId);
|
this.clearSubscribe(this.stationId);
|
||||||
},
|
},
|
||||||
@ -72,7 +78,6 @@ export default {
|
|||||||
viewLoaded() {
|
viewLoaded() {
|
||||||
},
|
},
|
||||||
subscribe(stationCode) {
|
subscribe(stationCode) {
|
||||||
this.clearSubscribe();
|
|
||||||
const header = { group: this.$route.query.group || '', 'X-Token': getToken() };
|
const header = { group: this.$route.query.group || '', 'X-Token': getToken() };
|
||||||
creatSubscribe(getTopic('ISCSPSD', this.$route.query.group, {stationCode} ), header);
|
creatSubscribe(getTopic('ISCSPSD', this.$route.query.group, {stationCode} ), header);
|
||||||
this.$store.dispatch('app/animationsClose');
|
this.$store.dispatch('app/animationsClose');
|
||||||
|
Loading…
Reference in New Issue
Block a user