fix: bugs

This commit is contained in:
qier222 2021-03-24 22:28:11 +08:00
parent 044720c531
commit fd16d470bd
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
5 changed files with 21 additions and 18 deletions

View file

@ -56,9 +56,7 @@
<div></div>
</div>
<div class="album" v-if="!isTracklist && !isAlbum">
<router-link :to="`/album/${track.al.id}`">{{
track.al.name
}}</router-link>
<router-link :to="`/album/${album.id}`">{{ album.name }}</router-link>
<div></div>
</div>
<div class="actions" v-if="!isTracklist">
@ -66,8 +64,7 @@
<svg-icon
icon-class="heart"
:style="{
visibility:
focus && !isLiked && track.playable ? 'visible' : 'hidden',
visibility: focus && !isLiked ? 'visible' : 'hidden',
}"
></svg-icon>
<svg-icon icon-class="heart-solid" v-show="isLiked"></svg-icon>
@ -111,6 +108,9 @@ export default {
if (this.track.artists !== undefined) return this.track.artists;
return [];
},
album() {
return this.track.album || this.track.al;
},
type() {
return this.$parent.type;
},