From 8c6d65631ac88cdbef380cd38c6be51bdca788a6 Mon Sep 17 00:00:00 2001 From: coco1986509808 <1986509808@qq.com> Date: Mon, 17 Apr 2023 20:12:20 +0800 Subject: [PATCH] =?UTF-8?q?4.17websocket=E8=B0=83=E8=AF=95=E6=88=90?= =?UTF-8?q?=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/monitoring/barrier.vue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/views/modules/monitoring/barrier.vue b/src/views/modules/monitoring/barrier.vue index 34f3058..b9ce06b 100644 --- a/src/views/modules/monitoring/barrier.vue +++ b/src/views/modules/monitoring/barrier.vue @@ -387,18 +387,13 @@ */ getWarningPicture(warningData) { // warningData为数组说明是初始化数据,为对象说明是ws推送的数据 - - if (this.warningList.length === 4) { - this.warningList.pop() - this.warningList.unshift(warningData) - } else { console.log("this warningDAta") console.log(warningData) this.warningList = warningData - // this.warningList.unshift(warningData) + //this.warningList.unshift(warningData) console.log("this warningList") console.log(this.warningList) - } + // 声音 和 tips预警 let warningType = this.$refs.notice warningType.play()