新增“下载的歌词文件编码格式”设置

This commit is contained in:
lyswhut
2021-08-26 16:00:03 +08:00
parent 72df1a35a0
commit fe35081e03
8 changed files with 49 additions and 8 deletions
+18
View File
@@ -149,6 +149,11 @@ div(:class="$style.main")
h3#download_lyric {{$t('view.setting.download_lyric')}}
div
material-checkbox(id="setting_download_isDownloadLrc" v-model="current_setting.download.isDownloadLrc" :label="$t('view.setting.is_enable')")
dd
h3#download_lyric {{$t('view.setting.download_lyric_format')}}
div
material-checkbox(v-for="item in lrcFormatList" :key="item.id" :class="$style.gapLeft" :id="`setting_download_lrcFormat_${item.id}`"
name="setting_basic_control_btn_position" need v-model="current_setting.download.lrcFormat" :value="item.id" :label="item.name")
dt#sync {{$t('view.setting.sync')}}
dd
@@ -424,6 +429,18 @@ export default {
},
]
},
lrcFormatList() {
return [
{
name: this.$t('view.setting.download_lyric_format_utf8'),
id: 'utf8',
},
{
name: this.$t('view.setting.download_lyric_format_gbk'),
id: 'gbk',
},
]
},
trayThemeList() {
return [
{
@@ -494,6 +511,7 @@ export default {
savePath: '',
fileName: '歌名 - 歌手',
isDownloadLrc: false,
lrcFormat: 'utf8',
isEmbedPic: true,
isEmbedLyric: true,
},