From f584e628a539947303318a11f778603ffc22ce2e Mon Sep 17 00:00:00 2001 From: kdletters <61648117+kdletters@users.noreply.github.com> Date: Tue, 6 Oct 2026 11:42:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90=E6=8F=92=E4=BB=B6=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E4=B8=8E=E5=8F=91=E5=B8=83=E6=81=A2=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=AD=A3=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 显示运行时插件项目路径设置失败 保留发布状态恢复的 Tauri 字符串错误 --- .../game-distribution/GameDistributionPublishPanel.tsx | 7 ++++--- .../src/features/runtime-config/RuntimeConfigDialog.tsx | 6 +++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/ai-game-creator-shell/src/components/game-distribution/GameDistributionPublishPanel.tsx b/apps/ai-game-creator-shell/src/components/game-distribution/GameDistributionPublishPanel.tsx index ae94b1afa..c3ef169d9 100644 --- a/apps/ai-game-creator-shell/src/components/game-distribution/GameDistributionPublishPanel.tsx +++ b/apps/ai-game-creator-shell/src/components/game-distribution/GameDistributionPublishPanel.tsx @@ -395,9 +395,10 @@ export function GameDistributionPublishPanel({ if (publicationRequestId !== publicationRequestRef.current) return; setPublicationState('unavailable'); setPublicationMessage( - recoveryError instanceof Error - ? recoveryError.message - : '无法确认该项目的线上发布状态:未提供具体错误正文,请稍后重试', + `无法确认该项目的线上发布状态:${visibleClientErrorMessage( + recoveryError, + '未提供具体错误正文', + )},请稍后重试`, ); }); diff --git a/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx b/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx index 24827fc80..bf5d27674 100644 --- a/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx +++ b/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx @@ -264,7 +264,11 @@ export function RuntimeConfigDialog({ ); useEffect(() => { - void setAgcPluginProjectPath(projectPath ?? null).catch(() => undefined); + void setAgcPluginProjectPath(projectPath ?? null).catch((error) => { + setAgcPluginsStatus( + `项目插件路径设置失败:${visibleClientErrorMessage(error)}`, + ); + }); }, [projectPath]); useEffect(() => {