mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
feat: updates
This commit is contained in:
parent
3ef7675696
commit
744247143b
11 changed files with 195 additions and 68 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue