diff --git a/src/ui/src/router/index.js b/src/ui/src/router/index.js index 84621c5..8d8a96e 100644 --- a/src/ui/src/router/index.js +++ b/src/ui/src/router/index.js @@ -13,15 +13,12 @@ const routes = [ { path: '/about', name: 'about', - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue') + component: () => import( '../views/AboutView.vue') }, { path: '/setting', name: 'setting', - component: () => import(/* webpackChunkName: "setting" */ '../views/SettingView.vue') + component: () => import('../views/SettingView.vue') } ] diff --git a/src/ui/src/views/SettingView.vue b/src/ui/src/views/SettingView.vue index 5b69a32..23b8f64 100644 --- a/src/ui/src/views/SettingView.vue +++ b/src/ui/src/views/SettingView.vue @@ -1,95 +1,100 @@ @@ -98,9 +103,13 @@ export default { name: "Setting", data: () => { return { + isProxyEnabled: true, proxyEnabled: false, - proxyHost: "", - proxyPort: "", + isBlockDictEnabled: true, + blockDictEnabled: false, + blockDictPath: "", + proxyAddress: "", + updateAddress: "", mergeLrc: false, lineBreak: "lf", lineBreakOptions: [ @@ -109,13 +118,13 @@ export default { ], lrcEncoding: "utf-8", lyricDownloaderHeaders: [ - {text: "启用", value: "isEnabled"}, + {text: "启用", value: "enabled"}, {text: "歌词源", value: "name"}, {text: "搜索深度", value: "searchDepth"}, {text: "优先级", value: "priority"}, ], lyricDownloader: [ - {isEnabled: true, name: "网易云音乐", searchDepth: 10, priority: 1}, + {enabled: true, name: "网易云音乐", searchDepth: 10, priority: 1}, ], tagParserHeaders: [ {text: "启用", value: "enabled", sortable: false, width: "10%"}, @@ -127,6 +136,13 @@ export default { } }, computed: {}, - methods: {}, + methods: { + proxyEnabledChange() { + this.proxyEnabled = !this.proxyEnabled; + }, + blockDictEnabledChange() { + this.blockDictEnabled = !this.blockDictEnabled; + } + }, }; \ No newline at end of file