diff --git a/src/i18n/lang/en-US/user.ts b/src/i18n/lang/en-US/user.ts index 49b7f5d..90bf1d8 100644 --- a/src/i18n/lang/en-US/user.ts +++ b/src/i18n/lang/en-US/user.ts @@ -6,6 +6,7 @@ export default { }, playlist: { created: 'Created Playlists', + mine: 'Mine', trackCount: '{count} tracks', playCount: 'Played {count} times' }, diff --git a/src/i18n/lang/zh-CN/user.ts b/src/i18n/lang/zh-CN/user.ts index cb847a4..778187a 100644 --- a/src/i18n/lang/zh-CN/user.ts +++ b/src/i18n/lang/zh-CN/user.ts @@ -6,6 +6,7 @@ export default { }, playlist: { created: '创建的歌单', + mine: '我创建的', trackCount: '{count}首', playCount: '播放{count}次' }, diff --git a/src/renderer/components/common/PlaylistDrawer.vue b/src/renderer/components/common/PlaylistDrawer.vue index e83193c..8b1b815 100644 --- a/src/renderer/components/common/PlaylistDrawer.vue +++ b/src/renderer/components/common/PlaylistDrawer.vue @@ -159,9 +159,9 @@ const fetchUserPlaylists = async () => { return; } - const res = await getUserPlaylist(user.userId); + const res = await getUserPlaylist(user.userId, 999); if (res.data?.playlist) { - playlists.value = res.data.playlist; + playlists.value = res.data.playlist.filter((item: any) => item.userId === user.userId); } } catch (error) { console.error('获取歌单失败:', error); diff --git a/src/renderer/views/user/index.vue b/src/renderer/views/user/index.vue index 6993573..b0ea052 100644 --- a/src/renderer/views/user/index.vue +++ b/src/renderer/views/user/index.vue @@ -43,7 +43,12 @@ preview-disabled />