feat: 在用户歌单中添加“我创建的”标签,优化获取用户歌单的逻辑

This commit is contained in:
alger
2025-05-23 20:08:40 +08:00
parent a449b74ef2
commit d56a25eb3c
4 changed files with 23 additions and 5 deletions
@@ -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);