From 5cd0ca29a4a8d5ab965626844f1d361c8002cdf5 Mon Sep 17 00:00:00 2001 From: AoXuan Date: Fri, 19 Sep 2025 01:29:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(index.vue):=20=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96=E4=B8=80=E4=B8=8Bcss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/setting/index.vue | 293 +++++++++++++++++++++++---- 1 file changed, 248 insertions(+), 45 deletions(-) diff --git a/frontend/src/views/setting/index.vue b/frontend/src/views/setting/index.vue index 4f178a3..d08e9e5 100644 --- a/frontend/src/views/setting/index.vue +++ b/frontend/src/views/setting/index.vue @@ -190,7 +190,10 @@ const openDevTools = () => (window as any).electronAPI?.openDevTools?.() // 更新检查 const checkUpdate = async () => { try { - const response = await Service.checkUpdateApiUpdateCheckPost({ current_version: version, if_force: true }) + const response = await Service.checkUpdateApiUpdateCheckPost({ + current_version: version, + if_force: true, + }) if (response.code === 200) { if (response.if_need_update) { updateData.value = response.update_info @@ -229,7 +232,9 @@ const refreshMirrorConfig = async () => { } catch (e) { console.error('刷新镜像配置失败', e) message.error('刷新镜像配置失败') - } finally { refreshingConfig.value = false } + } finally { + refreshingConfig.value = false + } } const goToMirrorTest = () => router.push('/mirror-test') @@ -244,7 +249,9 @@ const testNotify = async () => { } catch (e) { console.error('测试通知发送失败', e) message.error('测试通知发送失败') - } finally { testingNotify.value = false } + } finally { + testingNotify.value = false + } } onMounted(() => { @@ -291,8 +298,8 @@ onMounted(() => { /> - { :go-to-mirror-test="goToMirrorTest" /> - + - +