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()