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)