Merge pull request #2176 from krishukr/master

fix(components): 修正描述小字内艺人链接
This commit is contained in:
pan93412 2024-03-01 00:10:25 -06:00 committed by GitHub
commit e738d1e46d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -75,9 +75,9 @@ export default {
return new Date(item.publishTime).getFullYear();
if (this.subText === 'artist') {
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)
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') {
let albumType = item.type;

View File

@ -73,7 +73,7 @@ export default {
artistName = mv.creator[0].userName;
artistID = mv.creator[0].userId;
}
return `<a href="/#/artist/${artistID}">${artistName}</a>`;
return `<a href="/artist/${artistID}">${artistName}</a>`;
} else if (this.subtitle === 'publishTime') {
return mv.publishTime;
}