feat: support daily recommend songs

This commit is contained in:
qier222 2021-03-19 01:23:08 +08:00
parent 59397ed535
commit 3bbab6ba27
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
9 changed files with 320 additions and 5 deletions

View file

@ -290,9 +290,11 @@ export default {
this.player.moveToFMTrash();
},
goToList() {
if (this.player.playlistSource.id === this.data.likedSongPlaylistID)
if (this.player.playlistSource.id === this.data.likedSongPlaylistID) {
this.$router.push({ path: "/library/liked-songs" });
else
} else if (this.player.playlistSource.type === "url") {
this.$router.push({ path: this.player.playlistSource.id });
} else {
this.$router.push({
path:
"/" +
@ -300,6 +302,7 @@ export default {
"/" +
this.player.playlistSource.id,
});
}
},
goToAlbum() {
if (this.player.currentTrack.al.id === 0) return;