diff --git a/src/store/app-store.ts b/src/store/app-store.ts index 8dbfda1..3ce9de2 100644 --- a/src/store/app-store.ts +++ b/src/store/app-store.ts @@ -260,7 +260,7 @@ export const useAppStore = create((set, get) => ({ } // 备份当前注册表(保存前备份旧值,失败仅警告不中断) - invoke('backup_registry', { customDir: null }) + await invoke('backup_registry', { customDir: null }) .catch(() => set({ statusMessage: i18n.t('status.warning_backup') })); const [sysResult, userResult] = await Promise.allSettled([