Browse Source

fix: 火情识别弹窗合并

kindring 1 year ago
parent
commit
8fc3ecc9b0
1 changed files with 5 additions and 1 deletions
  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);