mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
fix: bugs
This commit is contained in:
parent
41ff8058b2
commit
226a2145c4
8 changed files with 172 additions and 163 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue