修复歌曲检查事件清理

This commit is contained in:
lyswhut
2024-11-23 17:41:45 +08:00
parent f9f8297fd6
commit 41d6157116
@@ -29,6 +29,7 @@ const checkMusicUrl = async(url: string) => {
audio.removeEventListener('canplay', handlePlay)
}
const handleErr = () => {
clear()
if (audio?.error?.code !== 1) {
resolve(false)
} else {