add alert

This commit is contained in:
2023-12-28 23:25:58 +08:00
parent 0c36a9eec1
commit 1eabe1d300

View File

@@ -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
} }