Ver Fonte

fix: 火情识别弹窗合并

kindring há 1 ano atrás
pai
commit
8fc3ecc9b0
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      web_src/src/layout/UiHeader.vue

+ 5 - 1
web_src/src/layout/UiHeader.vue

@@ -191,9 +191,13 @@ export default {
           if (alarmIndex === -1 && arr[i].arithmetic.includes(arithmeticEnum.fire.val)) {
             this.showFireAlarm.push(arr[i]);
             // 显示
-            this.fireAlarm(this.showFireAlarm.length - 1)
           }
         }
+        // 有识别到火情, 则统一进行弹窗
+        if(this.showFireAlarm.length){
+          this.fireAlarm(this.showFireAlarm.length - 1)
+        }
+
       } else {
         console.log("未知错误");
         this.$message.error(res.data.msg);