From 8131a70a2f674acde693777a7a6b6e57a9217af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Tue, 22 Sep 2026 13:27:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=80=81=E7=9A=84=E9=87=8D?= =?UTF-8?q?=E8=AF=95=E6=8C=89=E9=92=AE=E4=B9=9F=E6=8C=89=20canSubmit=20?= =?UTF-8?q?=E9=97=A8=E7=A6=81=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - src/components/image-editor/model3d-generation/Model3dGenerationModal.tsx:重试按钮改为 dialog.status === 'failed' && canSubmit 才渲染;此前定价失效或参考图未上传完时它仍可点,提交管线再挡回来,交互上表现为「点了没反应」 验证:npx vitest run src/components/image-editor/model3d-generation/Model3dGenerationModal.test.tsx(8 用例全绿) --- .../image-editor/model3d-generation/Model3dGenerationModal.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/image-editor/model3d-generation/Model3dGenerationModal.tsx b/src/components/image-editor/model3d-generation/Model3dGenerationModal.tsx index 6ce576bab..67f9a9c74 100644 --- a/src/components/image-editor/model3d-generation/Model3dGenerationModal.tsx +++ b/src/components/image-editor/model3d-generation/Model3dGenerationModal.tsx @@ -127,7 +127,8 @@ export function Model3dGenerationModal({ )} - {dialog.status === 'failed' ? ( + {/* 重试也必须过 canSubmit:定价失效或参考图还在上传时点它只会在提交管线里被挡回来。 */} + {dialog.status === 'failed' && canSubmit ? (