mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
add alert
This commit is contained in:
@@ -135,6 +135,8 @@ async function searchMusic(keyword: string) {
|
|||||||
})
|
})
|
||||||
if (data.code == 200) {
|
if (data.code == 200) {
|
||||||
return data.data
|
return data.data
|
||||||
|
} else if (data.code == 404) {
|
||||||
|
message.error('未找到包含关键词: ' + keyword + ' 的歌曲')
|
||||||
}
|
}
|
||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user