From 06004bfeeadecf242edbee4a33ee75a7ffe5e382 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 11:34:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E8=B5=84=E6=BA=90=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E6=A0=87=E7=AD=BE=E7=9A=84=E9=87=8D=E5=A4=8D=E5=88=86?= =?UTF-8?q?=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除相同结果的死三元分支。 保持资源与运行区域引用均使用统一的 @标签 文本。 --- .../src/features/project-workspace/ResourceReferenceInput.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/ai-game-creator-shell/src/features/project-workspace/ResourceReferenceInput.tsx b/apps/ai-game-creator-shell/src/features/project-workspace/ResourceReferenceInput.tsx index cc54a46cc..b061cf091 100644 --- a/apps/ai-game-creator-shell/src/features/project-workspace/ResourceReferenceInput.tsx +++ b/apps/ai-game-creator-shell/src/features/project-workspace/ResourceReferenceInput.tsx @@ -236,9 +236,7 @@ function readDraftFromNodes(): ChatComposerDraft { const labels = new Map( projection.references.map((reference) => [ reference.type === 'resource' ? reference.resourceId : reference.label, - reference.type === 'resource' - ? `@${reference.label}` - : `@${reference.label}`, + `@${reference.label}`, ]), ); const text = projection.content