feat: updates

This commit is contained in:
qier222 2022-04-02 18:46:08 +08:00
parent 3ef7675696
commit 744247143b
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
11 changed files with 195 additions and 68 deletions

View file

@ -296,12 +296,11 @@ const Album = () => {
})
const handlePlay = async (trackID: number | null = null) => {
const realAlbum = album?.album
if (!realAlbum) {
toast('Failed to play album')
if (!album?.album.id) {
toast('无法播放专辑,该专辑不存在')
return
}
await player.playAlbum(realAlbum, trackID)
await player.playAlbum(album.album.id, trackID)
}
return (