fix: 修复播放列表没有写入专辑名称的问题

This commit is contained in:
Astrian Zheng 2025-09-03 16:03:26 +10:00
parent 4f0b897b4c
commit 456a0d33ec
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA

View File

@ -28,6 +28,7 @@ export const usePlayStore = defineStore('player', () => {
) => { ) => {
const newQueue = [] const newQueue = []
for (const item of queue) { for (const item of queue) {
console.log(item.song.artists ?? item.song.artistes)
newQueue.push({ newQueue.push({
url: item.song.sourceUrl ?? '', url: item.song.sourceUrl ?? '',
metadata: { metadata: {
@ -35,6 +36,7 @@ export const usePlayStore = defineStore('player', () => {
artist: artistsOrganize( artist: artistsOrganize(
item.song.artists ?? item.song.artistes ?? [], item.song.artists ?? item.song.artistes ?? [],
), ),
album: item.album?.name,
artwork: [ artwork: [
{ {
src: item.album?.coverUrl ?? '', src: item.album?.coverUrl ?? '',