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

@ -215,11 +215,11 @@ const Playlist = () => {
const handlePlay = useCallback(
(trackID: number | null = null) => {
if (!playlist) {
toast('Failed to play playlist')
if (!playlist?.playlist?.id) {
toast('无法播放歌单')
return
}
player.playPlaylist(playlist.playlist, trackID)
player.playPlaylist(playlist.playlist.id, trackID)
},
[playlist]
)