@@ -96,8 +96,8 @@ const resetFontFamily = () => {
9696 appSettings .app .fontFamily = DefaultFontFamily
9797}
9898
99- const resetUserAgent = () => {
100- appSettings .app .userAgent = APP_TITLE + ' / ' + APP_VERSION
99+ const clearUserAgent = () => {
100+ appSettings .app .userAgent = ' '
101101}
102102
103103const onPermChange = async (v : boolean ) => {
@@ -176,7 +176,7 @@ if (envStore.env.os === 'windows') {
176176 </script >
177177
178178<template >
179- <div class =" flex flex-col gap-8 pr -8 mb-8" >
179+ <div class =" flex flex-col gap-8 px -8 mb-8" >
180180 <div class =" px-8 py-8 text-18 font-bold" >{{ t('settings.personalization') }}</div >
181181
182182 <Card >
@@ -191,9 +191,7 @@ if (envStore.env.os === 'windows') {
191191 <div class =" px-8 py-12 flex items-center justify-between" >
192192 <div class =" text-16 font-bold" >
193193 {{ t('settings.lang.name') }}
194- <Button @click =" BrowserOpenURL(APP_LOCALES_URL)" type =" text" icon =" link" />
195- </div >
196- <div class =" flex items-center" >
194+ <Button @click =" BrowserOpenURL(APP_LOCALES_URL)" type =" text" icon =" link2" />
197195 <Button @click =" handleOpenLocalesFolder" type =" text" icon =" folder" />
198196 <Button
199197 @click =" appSettings.loadLocales()"
@@ -202,8 +200,8 @@ if (envStore.env.os === 'windows') {
202200 type =" text"
203201 icon =" refresh"
204202 />
205- <Radio v-model =" appSettings.app.lang" :options =" appSettings.locales" class =" ml-8" />
206203 </div >
204+ <Radio v-model =" appSettings.app.lang" :options =" appSettings.locales" />
207205 </div >
208206 <div class =" px-8 py-12 flex items-center justify-between" >
209207 <div class =" text-16 font-bold" >{{ t('settings.fontFamily') }}</div >
@@ -249,19 +247,17 @@ if (envStore.env.os === 'windows') {
249247 <span class =" font-normal text-12" >({{ t('settings.needAdmin') }})</span >
250248 </div >
251249 <div class =" flex items-center" >
252- <Switch v-model =" isTaskScheduled" @change =" onTaskSchChange" />
253- <template v-if =" isTaskScheduled " >
254- <Radio
255- v-model =" appSettings.app.windowStartState"
256- :options =" windowStates"
257- type =" number"
258- class =" ml-16"
259- />
260- </template >
250+ <Radio
251+ v-if =" isTaskScheduled"
252+ v-model =" appSettings.app.windowStartState"
253+ :options =" windowStates"
254+ type =" number"
255+ />
256+ <Switch v-model =" isTaskScheduled" @change =" onTaskSchChange" class =" ml-16" />
261257 </div >
262258 </div >
263259 <div
264- v-if =" envStore.env.os === 'windows' && isAdmin"
260+ v-if =" envStore.env.os === 'windows' && isAdmin && isTaskScheduled "
265261 class =" px-8 py-12 flex items-center justify-between"
266262 >
267263 <div class =" text-16 font-bold" >
@@ -272,8 +268,8 @@ if (envStore.env.os === 'windows') {
272268 v-model =" appSettings.app.startupDelay"
273269 @submit =" onStartupDelayChange"
274270 :min =" 0"
271+ editable
275272 type =" number"
276- class =" ml-4"
277273 >
278274 <template #suffix >
279275 <span class =" ml-4" >{{ t('settings.startup.delay') }}</span >
@@ -328,15 +324,24 @@ if (envStore.env.os === 'windows') {
328324 {{ t('settings.proxyBypassList') }}
329325 <span class =" font-normal text-12" >({{ t('settings.proxyBypassListTips') }})</span >
330326 </div >
331- <CodeViewer v-model =" appSettings.app.proxyBypassList" editable lang =" yaml" />
327+ <CodeViewer
328+ v-model =" appSettings.app.proxyBypassList"
329+ editable
330+ lang =" yaml"
331+ class =" min-w-256"
332+ />
332333 </div >
333334 <div class =" px-8 py-12 flex items-center justify-between" >
334335 <div class =" text-16 font-bold" >{{ t('settings.userAgent.name') }}</div >
335336 <div class =" flex items-center" >
336- <Input v-model.lazy =" appSettings.app.userAgent" editable >
337+ <Input
338+ v-model.lazy =" appSettings.app.userAgent"
339+ :placeholder =" APP_TITLE + '/' + APP_VERSION"
340+ editable
341+ >
337342 <template #suffix >
338343 <Button
339- @click =" resetUserAgent "
344+ @click =" clearUserAgent "
340345 v-tips =" 'settings.userAgent.reset'"
341346 type =" text"
342347 size =" small"
0 commit comments