From 31c084fce670b375025a490223de5db8f31e44d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 18 Sep 2026 16:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E7=95=99=E4=BF=9D=E5=AD=98=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E5=BA=95=E5=B1=82=E9=94=99=E8=AF=AF=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=20=E5=B0=86=E5=AE=9E=E9=99=85=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E4=BC=A0=E9=80=92=E5=88=B0=E4=BF=9D=E5=AD=98=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=92=8C=E9=87=8D=E8=AF=95=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/view/ui-editor/useUiEditorPage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts b/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts index b5be54122..060174f3f 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts +++ b/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts @@ -1557,8 +1557,8 @@ export function useUiEditorSession( } }); } catch (cause) { - const message = '保存失败,请稍后重试。'; - setSaveError('保存失败,请稍后重试。'); + const message = cause instanceof Error ? cause.message : String(cause); + setSaveError(message); return { status: 'failed' as const, phase: 'save' as const, message }; } finally { setIsGenerating(false);