mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 08:56:59 +08:00
fix: empty artist link (#705)
This commit is contained in:
parent
e233aa9f1d
commit
5869f889f9
|
@ -2,7 +2,10 @@
|
|||
<span class="artist-in-line">
|
||||
{{ computedPrefix }}
|
||||
<span v-for="(ar, index) in filteredArtists" :key="ar.id">
|
||||
<router-link :to="`/artist/${ar.id}`">{{ ar.name }}</router-link>
|
||||
<router-link v-if="ar.id !== 0" :to="`/artist/${ar.id}`">
|
||||
{{ ar.name }}
|
||||
</router-link>
|
||||
<span v-else>{{ ar.name }}</span>
|
||||
<span v-if="index !== filteredArtists.length - 1">, </span>
|
||||
</span>
|
||||
</span>
|
||||
|
|
|
@ -37,9 +37,9 @@
|
|||
<span
|
||||
v-for="(ar, index) in currentTrack.ar"
|
||||
:key="ar.id"
|
||||
@click="goToArtist(ar.id)"
|
||||
@click="ar.id !== 0 && goToArtist(ar.id)"
|
||||
>
|
||||
<span class="ar">{{ ar.name }}</span
|
||||
<span :class="ar.id !== 0 ? 'ar' : ''"> {{ ar.name }} </span
|
||||
><span v-if="index !== currentTrack.ar.length - 1">, </span>
|
||||
</span>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user