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} )}