feat: 枚举优化

This commit is contained in:
2026-02-23 23:08:44 +08:00
parent 07388db632
commit 02a7cf1981
6 changed files with 34 additions and 21 deletions

View File

@@ -221,12 +221,7 @@ const initPlayer = (url) => {
}]
})
player.on('ended', () => {
if (audioUrl.value?.startsWith('blob:')) {
URL.revokeObjectURL(audioUrl.value)
}
audioUrl.value = ''
})
// 播放结束后保留播放器,让用户可以再次播放
player.on('error', (e) => {
console.error('APlayer 播放错误:', e)