Browse Source

perf: 增加告警

master
kiki 2 years ago
parent
commit
836d7b441a
  1. 6
      src/views/data-view/data-view.vue

6
src/views/data-view/data-view.vue

@ -273,6 +273,12 @@ export default {
this.$refs.table1.scrollReset(); this.$refs.table1.scrollReset();
this.$refs.table2.scrollReset(); this.$refs.table2.scrollReset();
this.$refs.table3.scrollReset(); this.$refs.table3.scrollReset();
const audio = new Audio('/alarm.mp3');
const hasBalanceWarning = this.data1.some(i => i.balanceWarning) || this.data2.some(i => i.balanceWarning) || this.data3.some(i => i.balanceWarning)
if(hasBalanceWarning){
audio.play();
}
} }
}, },
/** /**

Loading…
Cancel
Save