From d9a895edad1d0add4a185f0fcbc6a3b40814db82 Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Wed, 18 Dec 2024 09:58:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=AE=9E=E6=97=B6=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/websocket.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ruoyi-ui/src/views/websocket.vue b/ruoyi-ui/src/views/websocket.vue index c442f3a9..826ff7f5 100644 --- a/ruoyi-ui/src/views/websocket.vue +++ b/ruoyi-ui/src/views/websocket.vue @@ -107,7 +107,6 @@ export default { break; case "0": this.$emit("newEvent", params); - this.$root.$emit('refreshMap'); break; case "3": case "externalPlatformOffline": @@ -116,7 +115,6 @@ export default { break; case "2": this.triggerAlert() - this.$root.$emit('refreshMap'); setTimeout(() => { this.$emit("newEvent", params); }, 1000); // 1000 毫秒 = 1 秒 @@ -130,7 +128,6 @@ export default { }else{ this.$emit("newEvent", params); } - this.$root.$emit('refreshMap'); break; case "deviceState": this.EventBus.$emit("deviceState", contentList); @@ -138,6 +135,7 @@ export default { case "eventCount": this.$root.$emit('update-warning', content); + this.$root.$emit('refreshMap'); break; case "eventProcess": this.$root.$emit('update-eventProcess', content);