mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-05-18 03:17:29 +08:00
refactor: 重构历史记录
This commit is contained in:
@@ -240,13 +240,14 @@ const playAlbum = async (album: any) => {
|
||||
const playerCore = usePlayerCoreStore();
|
||||
const playlistStore = usePlaylistStore();
|
||||
|
||||
const albumCover = data.album?.picUrl || album.picUrl;
|
||||
const playlist = data.songs.map((s: any) => ({
|
||||
id: s.id,
|
||||
name: s.name,
|
||||
picUrl: s.al?.picUrl || album.picUrl,
|
||||
source: 'netease',
|
||||
song: s,
|
||||
...s,
|
||||
picUrl: s.al?.picUrl || albumCover,
|
||||
playLoading: false
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user