Skip to content

Commit 1c1e742

Browse files
authored
Merge pull request #78 from imsyy/dev
修复音乐播放器无法获取歌曲名
2 parents 1086591 + 82a6877 commit 1c1e742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Player/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ onMounted(() => {
124124
// 生成歌单
125125
res.forEach((v) => {
126126
playList.value.push({
127-
title: v.name,
128-
artist: v.artist,
127+
title: v.name || v.title,
128+
artist: v.artist || v.author,
129129
src: v.url,
130130
pic: v.pic,
131131
lrc: v.lrc,

0 commit comments

Comments
 (0)