更新
This commit is contained in:
parent
49933f7a7e
commit
700151510b
@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user