mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-05-17 02:07:29 +08:00
feat: 在用户歌单中添加“我创建的”标签,优化获取用户歌单的逻辑
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user