🎨 Updated

This commit is contained in:
landaiqing committed 2025-06-21 19:05:08 +08:00
1 parent a92e5486b2
commit 77287bccfa
10 files changed
+117 -57

No files matched your search

+3 -2
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');
}
};