修复歌曲检查事件清理
This commit is contained in:
@@ -29,6 +29,7 @@ const checkMusicUrl = async(url: string) => {
|
|||||||
audio.removeEventListener('canplay', handlePlay)
|
audio.removeEventListener('canplay', handlePlay)
|
||||||
}
|
}
|
||||||
const handleErr = () => {
|
const handleErr = () => {
|
||||||
|
clear()
|
||||||
if (audio?.error?.code !== 1) {
|
if (audio?.error?.code !== 1) {
|
||||||
resolve(false)
|
resolve(false)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user