mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
feat: add music language preference
This commit is contained in:
parent
f89fc84f95
commit
78d90f15f5
5 changed files with 46 additions and 14 deletions
|
|
@ -54,6 +54,20 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="left">
|
||||
<div class="title"> 音乐语种偏好 </div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<select v-model="musicLanguage">
|
||||
<option value="all">无偏好</option>
|
||||
<option value="zh">华语</option>
|
||||
<option value="ea">欧美</option>
|
||||
<option value="jp">日语</option>
|
||||
<option value="kr">韩语</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>音质</h3>
|
||||
<div class="item">
|
||||
|
|
@ -454,6 +468,17 @@ export default {
|
|||
this.$store.commit('changeLang', lang);
|
||||
},
|
||||
},
|
||||
musicLanguage: {
|
||||
get() {
|
||||
return this.settings.musicLanguage ?? 'all';
|
||||
},
|
||||
set(value) {
|
||||
this.$store.commit('updateSettings', {
|
||||
key: 'musicLanguage',
|
||||
value,
|
||||
});
|
||||
},
|
||||
},
|
||||
appearance: {
|
||||
get() {
|
||||
if (this.settings.appearance === undefined) return 'auto';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue