mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
feat: enhance (#1016)
This commit is contained in:
parent
9b565c41c2
commit
ee59479ff8
6 changed files with 21 additions and 12 deletions
|
|
@ -60,7 +60,9 @@
|
|||
</div>
|
||||
|
||||
<div v-if="showAlbumName" class="album">
|
||||
<router-link :to="`/album/${album.id}`">{{ album.name }}</router-link>
|
||||
<router-link v-if="album && album.id" :to="`/album/${album.id}`">{{
|
||||
album.name
|
||||
}}</router-link>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
|
|
@ -85,6 +87,7 @@
|
|||
import ArtistsInLine from '@/components/ArtistsInLine.vue';
|
||||
import ExplicitSymbol from '@/components/ExplicitSymbol.vue';
|
||||
import { mapState } from 'vuex';
|
||||
import { isNil } from 'lodash';
|
||||
|
||||
export default {
|
||||
name: 'TrackListItem',
|
||||
|
|
@ -117,8 +120,9 @@ export default {
|
|||
return image + '?param=224y224';
|
||||
},
|
||||
artists() {
|
||||
if (this.track.ar !== undefined) return this.track.ar;
|
||||
if (this.track.artists !== undefined) return this.track.artists;
|
||||
const { ar, artists } = this.track;
|
||||
if (!isNil(ar)) return ar;
|
||||
if (!isNil(artists)) return artists;
|
||||
return [];
|
||||
},
|
||||
album() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue