From a6c3db60fb09a836449f8755bcfc45033eba8277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 18 Sep 2026 16:57:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E7=AA=84=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E7=94=9F=E5=91=BD=E5=91=A8=E6=9C=9F=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20=E7=A7=BB=E9=99=A4=E6=9C=AA=E8=A2=AB=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E7=9A=84=20setRunning=20=E4=B8=8E=20reset=20=E6=9A=B4?= =?UTF-8?q?=E9=9C=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/view/ui-editor/operationLifecycle.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/operationLifecycle.ts b/apps/ai-game-creator-shell/src/view/ui-editor/operationLifecycle.ts index ecc189c59..c9eeec810 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/operationLifecycle.ts +++ b/apps/ai-game-creator-shell/src/view/ui-editor/operationLifecycle.ts @@ -3,11 +3,9 @@ import { useCallback, useState } from 'react'; export type UiEditorOperationLifecycle = { running: boolean; status: string | null; - setRunning: (running: boolean) => void; setStatus: (status: string | null) => void; begin: () => void; finish: () => void; - reset: () => void; }; /** Shared async-operation adapter used by suggestion/recognition/merge/separation. */ @@ -19,9 +17,5 @@ export function useUiEditorOperation(): UiEditorOperationLifecycle { setRunning(true); }, []); const finish = useCallback(() => setRunning(false), []); - const reset = useCallback(() => { - setRunning(false); - setStatus(null); - }, []); - return { running, status, setRunning, setStatus, begin, finish, reset }; + return { running, status, setStatus, begin, finish }; }