From 4cca8326413c6e422a9db409207e2924cf81d19c Mon Sep 17 00:00:00 2001 From: cocos02 Date: Tue, 16 Jun 2026 17:53:31 +0800 Subject: [PATCH] fix: reset version debounce state on version restore --- editor/stores/editorStore.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/stores/editorStore.ts b/editor/stores/editorStore.ts index 4429808..c8b14b9 100644 --- a/editor/stores/editorStore.ts +++ b/editor/stores/editorStore.ts @@ -210,6 +210,8 @@ export const useEditorStore = defineStore('editor', () => { selectedNodeId.value = null aiChanges.value = null dirty.value = false + lastSavedContent = JSON.stringify(v.gameData) + if (saveVersionTimer) { clearTimeout(saveVersionTimer); saveVersionTimer = null } autoSave() }