From cb3d452a4456f8777f30787e663bf20361248031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 19 Sep 2026 23:07:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=E7=AD=96=E5=88=92=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=E6=8F=90=E4=BA=A4=E6=8C=89=E9=92=AE=E6=96=87=E6=A1=88?= =?UTF-8?q?=E7=9A=84=E5=B5=8C=E5=A5=97=E4=B8=89=E5=85=83=E6=94=B9=E6=88=90?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - apps/ai-game-creator-shell/src/view/project-development/planning/PlanningChatView.tsx 的 submitLabel 改为先给默认值再按 needsUserInput / controlBusy 覆盖 - 取值结果不变,只是去掉三层嵌套三元表达式 --- .../project-development/planning/PlanningChatView.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/project-development/planning/PlanningChatView.tsx b/apps/ai-game-creator-shell/src/view/project-development/planning/PlanningChatView.tsx index 7e38c4526..2ac20eac3 100644 --- a/apps/ai-game-creator-shell/src/view/project-development/planning/PlanningChatView.tsx +++ b/apps/ai-game-creator-shell/src/view/project-development/planning/PlanningChatView.tsx @@ -193,11 +193,12 @@ export function PlanningChatView({ onDesignClarify, onDesignRetry, }: PlanningChatViewProps) { - const submitLabel = needsUserInput - ? '等待回答' - : controlBusy - ? '思考中' - : '发送'; + let submitLabel = '发送'; + if (needsUserInput) { + submitLabel = '等待回答'; + } else if (controlBusy) { + submitLabel = '思考中'; + } const submitting = controlBusy && !needsUserInput; const renderMessage = (message: ChatMessage, index: number) => (