From 2aae79d71e74d9001ce98229540cbada329758bf Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 2 Feb 2023 17:22:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=BF=E7=9C=9F=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E3=80=91iscs=E7=95=8C=E9=9D=A2=EF=BC=8C=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E9=97=A8=E7=B3=BB=E7=BB=9F=E5=88=87=E6=8D=A2=E8=BD=A6=E7=AB=99?= =?UTF-8?q?=E6=97=B6=E4=BB=A5=E5=89=8D=E6=98=AF=E6=9C=89=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E7=9A=84=EF=BC=8C=E7=8E=B0=E5=9C=A8=E6=B2=A1=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iscs/iscsSystemNew/stationConfig/psdSystem.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/iscs/iscsSystemNew/stationConfig/psdSystem.vue b/src/views/iscs/iscsSystemNew/stationConfig/psdSystem.vue index 5a4eadac7..3945f7d94 100644 --- a/src/views/iscs/iscsSystemNew/stationConfig/psdSystem.vue +++ b/src/views/iscs/iscsSystemNew/stationConfig/psdSystem.vue @@ -46,6 +46,12 @@ export default { } }, + watch: { + 'stationId': function (newVal, oldVal) { + this.clearSubscribe(oldVal); + this.subscribe(newVal); + } + }, beforeDestroy() { this.clearSubscribe(this.stationId); }, @@ -72,7 +78,6 @@ export default { viewLoaded() { }, subscribe(stationCode) { - this.clearSubscribe(); const header = { group: this.$route.query.group || '', 'X-Token': getToken() }; creatSubscribe(getTopic('ISCSPSD', this.$route.query.group, {stationCode} ), header); this.$store.dispatch('app/animationsClose');