From c46687f0ef68511e73ad484dbe33d053ec87e1ee 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:09:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=E6=BE=84=E6=B8=85=E9=97=AE=E7=AD=94?= =?UTF-8?q?=E5=8D=A1=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/PlanningUserInputCard.tsx 把 answerPrepared / controlBusy||submitting 的嵌套三元改成先取默认值再覆盖的 submitLabel - 文案取值不变 --- .../planning/PlanningUserInputCard.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/project-development/planning/PlanningUserInputCard.tsx b/apps/ai-game-creator-shell/src/view/project-development/planning/PlanningUserInputCard.tsx index b4db3e9a7..dff533d0b 100644 --- a/apps/ai-game-creator-shell/src/view/project-development/planning/PlanningUserInputCard.tsx +++ b/apps/ai-game-creator-shell/src/view/project-development/planning/PlanningUserInputCard.tsx @@ -26,6 +26,12 @@ export function PlanningUserInputCard({ Boolean(answers[question.id]?.trim()), ); const disabled = controlBusy || submitting || answerPrepared; + let submitLabel = '提交回答'; + if (answerPrepared) { + submitLabel = '回答已提交'; + } else if (controlBusy || submitting) { + submitLabel = '提交中'; + } return (
@@ -93,11 +99,7 @@ export function PlanningUserInputCard({ ).finally(() => setSubmitting(false)); }} > - {answerPrepared - ? '回答已提交' - : controlBusy || submitting - ? '提交中' - : '提交回答'} + {submitLabel}
);