fix: bugs

This commit is contained in:
qier222 2021-06-08 00:09:30 +08:00
parent 22c9691a73
commit c506dea02b
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
18 changed files with 79 additions and 32 deletions

View file

@ -127,7 +127,6 @@ export default {
translate() {
let t;
if (this.track?.tns?.length > 0) t = this.track.tns[0];
else if (this.track.al?.tns?.length > 0) t = this.track.al.tns[0];
else t = this.track.alia[0];
return t;
},
@ -138,11 +137,7 @@ export default {
return this.type === 'album';
},
isTranslate() {
return (
this.track?.tns?.length > 0 ||
this.track.al?.tns?.length > 0 ||
this.track.alia?.length > 0
);
return this.track?.tns?.length > 0 || this.track.alia?.length > 0;
},
isPlaylist() {
return this.type === 'playlist';
@ -301,6 +296,7 @@ button {
}
.translate {
color: #aeaeae;
margin-left: 4px;
}
}
.artist {
@ -401,7 +397,8 @@ button {
color: var(--color-primary);
.title,
.album,
.time {
.time,
.title-and-artist .translate {
color: var(--color-primary);
}
.title .featured,