From 6f29c60d639d902e365f6b3d56e9be2b2a27f486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 4 Sep 2026 18:07:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E8=8A=82=E7=82=B9=E9=80=89?= =?UTF-8?q?=E5=8C=BA=E7=9A=84=E4=B8=A5=E6=A0=BC=E7=A9=BA=E5=80=BC=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 selectedNodeId 的宽松不等比较改为 !== null --- .../ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2263bedc6..a580a652d 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 @@ -917,7 +917,7 @@ export function useUiEditorSession( setStatus('无法删除该节点。'); return result; } - if (selectedNodeId != null && deletedNodeIds?.has(selectedNodeId)) { + if (selectedNodeId !== null && deletedNodeIds?.has(selectedNodeId)) { setSelectedNodeId(null); } return result;