fix: bugs

This commit is contained in:
qier222 2021-06-05 05:36:58 +08:00
parent 41ff8058b2
commit 226a2145c4
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
8 changed files with 172 additions and 163 deletions

View file

@ -1,7 +1,7 @@
<template>
<span class="artist-in-line">
{{ computedPrefix }}
<span v-for="(ar, index) in filteredArtists" :key="ar.id">
<span v-for="(ar, index) in filteredArtists" :key="index">
<router-link v-if="ar.id !== 0" :to="`/artist/${ar.id}`">
{{ ar.name }}
</router-link>

View file

@ -65,7 +65,6 @@ export default {
width: 100%;
height: 100%;
user-select: none;
-webkit-app-region: no-drag;
}
.menu {
@ -81,6 +80,7 @@ export default {
box-sizing: border-box;
padding: 6px;
z-index: 1000;
-webkit-app-region: no-drag;
&:focus {
outline: none;

View file

@ -31,17 +31,17 @@
/></button-icon>
</div>
<div class="navigation-links">
<router-link to="/" :class="{ active: this.$route.name === 'home' }">{{
<router-link to="/" :class="{ active: $route.name === 'home' }">{{
$t('nav.home')
}}</router-link>
<router-link
to="/explore"
:class="{ active: this.$route.name === 'explore' }"
:class="{ active: $route.name === 'explore' }"
>{{ $t('nav.explore') }}</router-link
>
<router-link
to="/library"
:class="{ active: this.$route.name === 'library' }"
:class="{ active: $route.name === 'library' }"
>{{ $t('nav.library') }}</router-link
>
</div>

View file

@ -116,8 +116,8 @@ 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];
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;
},
@ -129,8 +129,8 @@ export default {
},
isTranslate() {
return (
this.track.tns?.length > 0 ||
this.track.al.tns?.length > 0 ||
this.track?.tns?.length > 0 ||
this.track.al?.tns?.length > 0 ||
this.track.alia?.length > 0
);
},