fix: 修复播放列表没有写入专辑名称的问题
This commit is contained in:
parent
4f0b897b4c
commit
456a0d33ec
|
@ -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 ?? '',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user