This commit is contained in:
Liwanyi 2022-11-08 15:55:24 +08:00
parent 49933f7a7e
commit 700151510b

View File

@ -209,7 +209,7 @@ export default class CommonUtils extends WuhuBase {
const audio = new Audio(url); const audio = new Audio(url);
audio.addEventListener("canplaythrough", () => { audio.addEventListener("canplaythrough", () => {
audio.play() audio.play()
.catch(err => Log.error(err)) .catch(err => Log.error('播放音频出错', err.message, err.stack))
.then(); .then();
}); });
} }