fix: bugs

This commit is contained in:
qier222 2021-01-31 00:52:02 +08:00
parent 6a64e73a2c
commit d6be72f5ce
9 changed files with 27 additions and 29 deletions

View file

@ -275,6 +275,11 @@ export default {
getLikedSongs(getLyric = true) {
getPlaylistDetail(this.data.likedSongPlaylistID, true).then((data) => {
this.likedSongsPlaylist = data.playlist;
if (data.playlist.trackIds.length === 0) {
NProgress.done();
this.show = true;
return;
}
let TrackIDs = data.playlist.trackIds.slice(0, 12).map((t) => t.id);
this.likedSongIDs = TrackIDs;
getTrackDetail(this.likedSongIDs.join(",")).then((data) => {