IBP盘alarm调整

This commit is contained in:
yuan 2021-06-16 14:56:36 +08:00
parent 926a95a818
commit a6ecb523f9

View File

@ -51,7 +51,7 @@ export default class alarm extends Group {
// domid还是写在了alarm里面 待优化
const audioDom = document.querySelector('#buzzer');
if (state && state.on) {
audioDom.play()
audioDom.play().catch(e=>{throw e})
} else if (state && !state.on) {
audioDom.pause()
}