From 97d046cdb1bfecba6ef90320b5c7fc86deec6a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Wed, 20 Nov 2024 14:30:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E6=8F=90=E7=A4=BA=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/websocket.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/websocket.vue b/ruoyi-ui/src/views/websocket.vue index 4e22893c..7f71c6a1 100644 --- a/ruoyi-ui/src/views/websocket.vue +++ b/ruoyi-ui/src/views/websocket.vue @@ -107,12 +107,17 @@ export default { case "0": case "3": case "2": + this.triggerAlert() + setTimeout(() => { + this.$emit("newEvent", params); + }, 1000); // 1000 毫秒 = 1 秒 + break; case "externalPlatformOffline": case "trafficFlowDataEarlyWarning": this.$emit("newEvent", params); break; case "1": - if(content.event.warningSource ==5||content.event.warningType==10||content.event.warningType==11){ + if(content.event.warningType==10||content.event.warningType==11){ this.triggerAlert() setTimeout(() => { this.$emit("newEvent", params);