From 34b05e4e160dfba264d9d1349c82f3785024190d Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Sun, 1 Mar 2026 19:09:08 +0800 Subject: [PATCH] fix(hooks): remove duplicate save calls in useAutoSave legacy --- dashboard/src/routes/config/bot/hooks/useAutoSave.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dashboard/src/routes/config/bot/hooks/useAutoSave.ts b/dashboard/src/routes/config/bot/hooks/useAutoSave.ts index b6871011..3d8bf7e1 100644 --- a/dashboard/src/routes/config/bot/hooks/useAutoSave.ts +++ b/dashboard/src/routes/config/bot/hooks/useAutoSave.ts @@ -194,10 +194,6 @@ export function useAutoSave( } setHasUnsavedChanges(false) onSaveSuccess?.() - setAutoSaving(true) - await updateBotConfigSection(sectionName, sectionData) - setHasUnsavedChanges(false) - onSaveSuccess?.() } catch (error) { console.error(`自动保存 ${sectionName} 失败:`, error) setHasUnsavedChanges(true)