修正专辑下描述内艺人链接

This commit is contained in:
Kris Hu 2024-01-31 12:25:38 +00:00 committed by GitHub
parent fd40a29180
commit 3093b6f386
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,9 +75,9 @@ export default {
return new Date(item.publishTime).getFullYear(); return new Date(item.publishTime).getFullYear();
if (this.subText === 'artist') { if (this.subText === 'artist') {
if (item.artist !== undefined) if (item.artist !== undefined)
return `<a href="/#/artist/${item.artist.id}">${item.artist.name}</a>`; return `<a href="/artist/${item.artist.id}">${item.artist.name}</a>`;
if (item.artists !== undefined) if (item.artists !== undefined)
return `<a href="/#/artist/${item.artists[0].id}">${item.artists[0].name}</a>`; return `<a href="/artist/${item.artists[0].id}">${item.artists[0].name}</a>`;
} }
if (this.subText === 'albumType+releaseYear') { if (this.subText === 'albumType+releaseYear') {
let albumType = item.type; let albumType = item.type;