修复歌曲检查事件清理

pull/2078/head^2
lyswhut 2024-11-23 17:41:45 +08:00
parent f9f8297fd6
commit 41d6157116
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ const checkMusicUrl = async(url: string) => {
audio.removeEventListener('canplay', handlePlay)
}
const handleErr = () => {
clear()
if (audio?.error?.code !== 1) {
resolve(false)
} else {