fix: 音乐库收藏的歌单少了第一张歌单 (#1657)

master
memorydream 3 years ago committed by GitHub
parent bbbd729fdf
commit 439f368fd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -114,7 +114,7 @@
<div v-show="currentTab === 'playlists'">
<div v-if="liked.playlists.length > 1">
<CoverRow
:items="filterPlaylists.slice(1)"
:items="filterPlaylists"
type="playlist"
sub-text="creator"
:show-play-button="true"
@ -282,7 +282,7 @@ export default {
return this.data.libraryPlaylistFilter || 'all';
},
filterPlaylists() {
const playlists = this.liked.playlists;
const playlists = this.liked.playlists.slice(1);
const userId = this.data.user.userId;
if (this.playlistFilter === 'mine') {
return playlists.filter(p => p.creator.userId === userId);

Loading…
Cancel
Save