From d0651e2104df319aa4f852847e43e18cbc4cad25 Mon Sep 17 00:00:00 2001 From: DLmaster361 Date: Sun, 14 Sep 2025 00:51:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=86=8D=E6=AC=A1=E7=A7=BB=E9=99=A4Upd?= =?UTF-8?q?ateType=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/setting/TabUpdate.vue | 24 +++--------------------- frontend/src/views/setting/index.vue | 7 ------- 2 files changed, 3 insertions(+), 28 deletions(-) diff --git a/frontend/src/views/setting/TabUpdate.vue b/frontend/src/views/setting/TabUpdate.vue index 11b64af..debdcf0 100644 --- a/frontend/src/views/setting/TabUpdate.vue +++ b/frontend/src/views/setting/TabUpdate.vue @@ -2,9 +2,8 @@ import { QuestionCircleOutlined } from '@ant-design/icons-vue' import type { SettingsData } from '@/types/settings' -const { settings, updateTypeOptions, updateSourceOptions, handleSettingChange, checkUpdate } = defineProps<{ +const { settings, updateSourceOptions, handleSettingChange, checkUpdate } = defineProps<{ settings: SettingsData - updateTypeOptions: { label: string; value: string }[] updateSourceOptions: { label: string; value: string }[] handleSettingChange: (category: keyof SettingsData, key: string, value: any) => Promise checkUpdate: () => Promise @@ -25,7 +24,7 @@ const { settings, updateTypeOptions, updateSourceOptions, handleSettingChange, c - +
自动检查更新 @@ -44,24 +43,7 @@ const { settings, updateTypeOptions, updateSourceOptions, handleSettingChange, c
- -
-
- 更新类型 - - - -
- -
-
- +
更新源 diff --git a/frontend/src/views/setting/index.vue b/frontend/src/views/setting/index.vue index 8ffc4b7..bfc780e 100644 --- a/frontend/src/views/setting/index.vue +++ b/frontend/src/views/setting/index.vue @@ -79,7 +79,6 @@ const settings = reactive({ Start: { IfSelfStart: false, IfMinimizeDirectly: false }, Update: { IfAutoUpdate: false, - UpdateType: 'stable', Source: 'GitHub', ProxyAddress: '', MirrorChyanCDK: '', @@ -104,11 +103,6 @@ const sendTaskResultTimeOptions = [ { label: '仅失败时', value: '仅失败时' }, ] -const updateTypeOptions = [ - { label: '稳定版', value: 'stable' }, - { label: '测试版', value: 'beta' }, -] - const updateSourceOptions = [ { label: 'GitHub', value: 'GitHub' }, { label: 'Mirror酱', value: 'MirrorChyan' }, @@ -302,7 +296,6 @@ onMounted(() => {