From 01b068decf422ef796d1ea71218cffa0bc4c0e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Tue, 6 Oct 2026 18:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E5=BC=B9=E7=AA=97=E6=8A=8A?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=96=87=E6=A1=88=E4=B8=8E=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=A4=84=E7=90=86=E7=BB=91=E5=9C=A8=E4=B8=80=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - FailureDialog 的 agentAction 改为 { label, onClick },不再按中文文案反查 onAdapt / onRepair --- .../export/tabs/xiaohongshu/FailureDialog.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/project-development/export/tabs/xiaohongshu/FailureDialog.tsx b/apps/ai-game-creator-shell/src/view/project-development/export/tabs/xiaohongshu/FailureDialog.tsx index da6d7e4ba..009cfe802 100644 --- a/apps/ai-game-creator-shell/src/view/project-development/export/tabs/xiaohongshu/FailureDialog.tsx +++ b/apps/ai-game-creator-shell/src/view/project-development/export/tabs/xiaohongshu/FailureDialog.tsx @@ -38,13 +38,14 @@ export function FailureDialog({ onDismiss: () => void; }) { const repairability = failure ? classifyXhsMinitoolFailure(failure) : null; + // 文案与点击处理一起定:只存一句中文再按它反查 handler 的话,改文案就会静默接错动作。 const agentAction = !failure || repairability === XhsMinitoolFailureRepairability.OnlyHumanRepairable ? null : failure.type === 'buildScriptMissing' - ? '让陶泥儿帮我调通' - : '让陶泥儿来修'; + ? { label: '让陶泥儿帮我调通', onClick: onAdapt } + : { label: '让陶泥儿来修', onClick: onRepair }; return ( 关闭 {agentAction === null ? null : ( - - {agentAction} + + {agentAction.label} )}