From c5188d468276e269f927e555ee5e77bbf9e3c36c 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:06:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=BA=A2=E4=B9=A6=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E5=9C=B0=E5=9D=80=E6=94=B6=E6=88=90=E5=B8=B8?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xiaohongshu/ArtifactsPane.tsx:把创作平台发布页 URL 提到模块常量 XHS_PUBLISH_URL。 --- .../export/tabs/xiaohongshu/ArtifactsPane.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/project-development/export/tabs/xiaohongshu/ArtifactsPane.tsx b/apps/ai-game-creator-shell/src/view/project-development/export/tabs/xiaohongshu/ArtifactsPane.tsx index d28ffc470..0cb15f7a1 100644 --- a/apps/ai-game-creator-shell/src/view/project-development/export/tabs/xiaohongshu/ArtifactsPane.tsx +++ b/apps/ai-game-creator-shell/src/view/project-development/export/tabs/xiaohongshu/ArtifactsPane.tsx @@ -10,6 +10,9 @@ import { ConflictCard } from './ConflictCard'; import { FailureDialog } from './FailureDialog'; import { FormCard } from './FormCard'; +/** 小红书创作平台的发布 / 更新入口;业务地址收一处,改路径只动这里。 */ +const XHS_PUBLISH_URL = 'https://creator.xiaohongshu.com/new/red-app'; + /** * 小红书工作台左半:平台上传表单 + 小工具代码包 + 「打包」。 * @@ -176,11 +179,9 @@ export function ArtifactsPane({ type="button" className="cursor-pointer self-center border-0 bg-transparent p-0 text-xs font-semibold text-[#c7653d] underline underline-offset-2 transition-colors hover:text-[#b4562f] active:text-[#3d1f10] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#c7653d]" onClick={() => { - void openUrl('https://creator.xiaohongshu.com/new/red-app').catch( - (error) => { - console.error('[agc] 打开小红书发布页失败', error); - }, - ); + void openUrl(XHS_PUBLISH_URL).catch((error) => { + console.error('[agc] 打开小红书发布页失败', error); + }); }} > 前往小红书发布/更新