Skip to content

Commit

Permalink
fix: 音乐库收藏的歌单少了第一张歌单 (#1657)
Browse files Browse the repository at this point in the history
  • Loading branch information
memorydream authored May 22, 2022
1 parent bbbd729 commit 439f368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/library.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 439f368

Please sign in to comment.