diff --git a/src/ibp/shape/alarm.js b/src/ibp/shape/alarm.js index cb46abdd6..374bf7062 100644 --- a/src/ibp/shape/alarm.js +++ b/src/ibp/shape/alarm.js @@ -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() }