From 9bbfc56cd7b1a61b5d707c8117b3f957453aa14f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 12 Sep 2026 15:02:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=88=86=E7=A6=BB=E6=9C=9F?= =?UTF-8?q?=E9=97=B4=E4=BF=9D=E5=AD=98=E9=80=89=E9=A1=B9=E7=9A=84=E9=97=AD?= =?UTF-8?q?=E5=8C=85=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 由调用方明确传入的 allowDuringSeparation 直接生效,避免依赖点击时捕获的过期状态。 --- .../src/view/ui-editor/useUiEditorPage.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts b/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts index b7637d6c1..56ad362ab 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts +++ b/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts @@ -1343,12 +1343,7 @@ export function useUiEditorSession( } async function save(options?: { allowDuringSeparation?: boolean }) { - const allowDuringSeparation = - options?.allowDuringSeparation === true && - isSeparating && - !isSuggesting && - !isRecognizing && - !isMerging; + const allowDuringSeparation = options?.allowDuringSeparation === true; if ( !resourceId || isSaving ||