IBP盘alarm调整
This commit is contained in:
parent
926a95a818
commit
a6ecb523f9
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user