From 2548337fc7f7993c508927d91461bafa665347b5 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 26 Jul 2022 17:43:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E5=8A=A1=E7=BB=88=E7=AB=AF=20?= =?UTF-8?q?=E8=AE=A2=E9=98=85ctc=20=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/mapsystemNew/index.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/newMap/mapsystemNew/index.vue b/src/views/newMap/mapsystemNew/index.vue index 13360dbce..e8d8631b5 100644 --- a/src/views/newMap/mapsystemNew/index.vue +++ b/src/views/newMap/mapsystemNew/index.vue @@ -118,11 +118,11 @@ export default { async subscribe() { this.clearSubscribe(); const header = { group: this.$route.query.group || '', 'X-Token': getToken() }; - creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header); - creatSubscribe(getTopic('STATE', this.$route.query.group), header); + await creatSubscribe(`${displayTopic}\/${this.$route.query.group}`, header); + await creatSubscribe(getTopic('STATE', this.$route.query.group), header); // if (this.$route.query.ctc == 'true') { if (this.$route.query.lineCode == '16') { - creatSubscribe(getTopic('CTC', this.$route.query.group), header); + await creatSubscribe(getTopic('CTC', this.$route.query.group), header); } // $route.query.lineCode === '16'; // if (this.$route.query.dispatcherStation == 'true') { @@ -133,9 +133,9 @@ export default { async subscribeNew() { this.clearSubscribeNew(); const header = { 'X-Token': getToken() }; - creatSubscribe(getTopic('ATS', this.$route.query.group), header); - creatSubscribe(getTopic('SYSTIME', this.$route.query.group), header); - creatSubscribe(getTopic('STATE', this.$route.query.group), header); + await creatSubscribe(getTopic('ATS', this.$route.query.group), header); + await creatSubscribe(getTopic('SYSTIME', this.$route.query.group), header); + await creatSubscribe(getTopic('STATE', this.$route.query.group), header); await this.$store.dispatch('training/setHasSubscribed'); }, clearSubscribeNew() {