🎨 Updated
This commit is contained in:
1 parent
a92e5486b2
commit
77287bccfa
10 files changed
+117
-57
No files matched your search
@@ -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');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user