🎨 Updated

This commit is contained in:
2025-06-21 19:05:08 +08:00
parent a92e5486b2
commit 77287bccfa
10 changed files with 117 additions and 57 deletions

View File

@@ -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');
}
};