feat: 枚举优化
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user