From aa26f988088de2bbf641c3247479a29222be4f8b Mon Sep 17 00:00:00 2001 From: 23688nl <329261568@qq.com> Date: Thu, 8 Sep 2022 17:58:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=EF=BC=9A=20=E5=A4=84?= =?UTF-8?q?=E7=90=86=E7=9B=91=E6=8E=A7=E5=A4=A7=E5=B1=8F=20=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=20=E5=91=8A=E8=AD=A6ws=20=E8=BF=94=E5=9B=9E=20success?= =?UTF-8?q?=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bigScreen/v3/profile/NotificationAlarm.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/bigScreen/v3/profile/NotificationAlarm.vue b/src/views/bigScreen/v3/profile/NotificationAlarm.vue index 01203b7e..6bf32aa2 100644 --- a/src/views/bigScreen/v3/profile/NotificationAlarm.vue +++ b/src/views/bigScreen/v3/profile/NotificationAlarm.vue @@ -76,7 +76,8 @@ export default { projectName: '中海创项目', projectAddress: '福建省福州市闽侯县高新区软件园二', alarmContent: '电池异常高温告警' - } + }, + isOpen: true }; }, watch: {}, @@ -127,11 +128,12 @@ export default { this.stompClient.onclose = this.socket_onclose; }, socket_message(evt) { - if (evt.data === 'success') { + if (evt.data === 'success' && this.isOpen) { if(this.getExploreName() === 'Chrome') { this.$alert('告警已连接,请开启声音接听...', '提示', { - confirmButtonText: '确定', - }); + confirmButtonText: '确定', + }); + this.isOpen = false; } } else { const data = JSON.parse(evt.data);