From 03a65e95fc4f4c7520dd4a53302c0fc25192f974 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 21:02:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=89=8D=E7=BD=AE=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E6=94=B9=E8=B5=B0=E7=BB=9F=E4=B8=80=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=87=BA=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit useGameDistributionPublishForm.ts:发布状态未就绪与封面缺少素材三处 setError 改成 reportError,让面板根的发布提示弹窗能显示出来。 --- .../game-distribution/useGameDistributionPublishForm.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/ai-game-creator-shell/src/components/game-distribution/useGameDistributionPublishForm.ts b/apps/ai-game-creator-shell/src/components/game-distribution/useGameDistributionPublishForm.ts index 8b05cb783..abee79220 100644 --- a/apps/ai-game-creator-shell/src/components/game-distribution/useGameDistributionPublishForm.ts +++ b/apps/ai-game-creator-shell/src/components/game-distribution/useGameDistributionPublishForm.ts @@ -760,11 +760,11 @@ export function useGameDistributionPublishForm({ return; } if (publicationState === 'checking') { - setError('正在确认项目发布状态,请稍候再试'); + reportError('正在确认项目发布状态,请稍候再试'); return; } if (publicationState === 'unavailable') { - setError( + reportError( publicationMessage || '无法确认该项目的线上发布状态,请稍后重试', ); return; @@ -774,7 +774,7 @@ export function useGameDistributionPublishForm({ return; } if (!cover.assetObjectId.trim()) { - setError('当前发布封面缺少平台素材,请重新选择封面后再发布'); + reportError('当前发布封面缺少平台素材,请重新选择封面后再发布'); return; } const formError = resolvePublishFormError();