fix: artist and album show as unknow in lyrics page

This commit is contained in:
qier222 2021-04-22 10:54:38 +08:00
parent e0c9fa38d3
commit c2793cf9ff
No known key found for this signature in database
GPG Key ID: 9C85007ED905F14D

View File

@ -273,12 +273,10 @@ export default {
return this.lyric.length == 0;
},
artist() {
// console.log(this.currentTrack);
// return this.currentTrack?.ar[0] || { id: 0, name: "unknown" };
return { id: 0, name: "unknown" };
return this.currentTrack?.ar[0] || { id: 0, name: "unknown" };
},
album() {
return { id: 0, name: "unknown" };
return this.currentTrack?.al || { id: 0, name: "unknown" };
},
},
created() {