mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
feat: add show lyrics translation to settings
This commit is contained in:
parent
d4be289946
commit
0dd30e251f
6 changed files with 53 additions and 9 deletions
|
|
@ -109,6 +109,22 @@
|
|||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="left">
|
||||
<div class="title">显示歌词翻译</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="toggle">
|
||||
<input
|
||||
type="checkbox"
|
||||
name="show-lyrics-translation"
|
||||
id="show-lyrics-translation"
|
||||
v-model="showLyricsTranslation"
|
||||
/>
|
||||
<label for="show-lyrics-translation"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="left">
|
||||
<div class="title"> {{ $t("settings.showGitHubIcon") }} </div>
|
||||
|
|
@ -294,6 +310,17 @@ export default {
|
|||
}
|
||||
},
|
||||
},
|
||||
showLyricsTranslation: {
|
||||
get() {
|
||||
return this.settings.showLyricsTranslation;
|
||||
},
|
||||
set(value) {
|
||||
this.$store.commit("updateSettings", {
|
||||
key: "showLyricsTranslation",
|
||||
value,
|
||||
});
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
logout() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue