From 77287bccfaab1a357be97e3443f959fe063bd16a Mon Sep 17 00:00:00 2001 From: landaiqing Date: Sat, 21 Jun 2025 19:05:08 +0800 Subject: [PATCH] :art: Updated --- frontend/src/stores/configStore.ts | 5 +- frontend/src/views/settings/Settings.vue | 4 +- .../views/settings/pages/AppearancePage.vue | 1 - .../src/views/settings/pages/EditingPage.vue | 1 - .../src/views/settings/pages/GeneralPage.vue | 3 +- .../views/settings/pages/KeyBindingsPage.vue | 1 - .../src/views/settings/pages/UpdatesPage.vue | 1 - frontend/vite.config.ts | 2 +- internal/services/startup_service.go | 6 - internal/services/startup_windows.go | 150 +++++++++++++----- 10 files changed, 117 insertions(+), 57 deletions(-) diff --git a/frontend/src/stores/configStore.ts b/frontend/src/stores/configStore.ts index 6f4b1e4..cd9ea54 100644 --- a/frontend/src/stores/configStore.ts +++ b/frontend/src/stores/configStore.ts @@ -415,9 +415,10 @@ export const useConfigStore = defineStore('config', () => { // 开机启动配置相关方法 setStartAtLogin: async (value: boolean) => { await safeCall(async () => { - // 先调用系统设置 + // 先更新配置文件 + await updateGeneralConfig('startAtLogin', value); + // 再调用系统设置API await StartupService.SetEnabled(value); - state.config.general.startAtLogin = value; }, 'config.startupFailed', 'config.startupSuccess'); } }; diff --git a/frontend/src/views/settings/Settings.vue b/frontend/src/views/settings/Settings.vue index 92c67d8..7223386 100644 --- a/frontend/src/views/settings/Settings.vue +++ b/frontend/src/views/settings/Settings.vue @@ -73,7 +73,7 @@ const goBackToEditor = async () => {