From 2e2e919d1d73dcea4f540c4f56be82663372cc8f Mon Sep 17 00:00:00 2001 From: Archer <545436317@qq.com> Date: Tue, 26 Aug 2025 15:15:21 +0800 Subject: [PATCH] fix: chat navbar (#5537) --- document/content/docs/upgrading/4-12/4122.mdx | 13 +++++++------ document/data/doc-last-modified.json | 2 +- projects/app/src/components/Layout/navbar.tsx | 3 ++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/document/content/docs/upgrading/4-12/4122.mdx b/document/content/docs/upgrading/4-12/4122.mdx index 8783fc704..b4ed6d6c0 100644 --- a/document/content/docs/upgrading/4-12/4122.mdx +++ b/document/content/docs/upgrading/4-12/4122.mdx @@ -24,12 +24,13 @@ description: 'FastGPT V4.12.2 更新说明' 1. 独立对话页部分 UI 异常。 2. 独立对话页无法渲染插件交互。 -3. 多选选择器导致的页面崩溃。 -4. 移动端,分享链接,异常加载了登录态对话页的导航。 -5. 用户同步可能出现写冲突问题。 -6. 无法完全关闭系统套餐,会存在空对象默认值,导致鉴权异常。 -7. 工作流,添加团队应用,搜索无效。 -8. 应用版本,ref 字段错误,导致无法正常使用。 +3. 独立对话页,使用二级路由时,默认地址错误。 +4. 多选选择器导致的页面崩溃。 +5. 移动端,分享链接,异常加载了登录态对话页的导航。 +6. 用户同步可能出现写冲突问题。 +7. 无法完全关闭系统套餐,会存在空对象默认值,导致鉴权异常。 +8. 工作流,添加团队应用,搜索无效。 +9. 应用版本,ref 字段错误,导致无法正常使用。 ## 🔨 工具更新 diff --git a/document/data/doc-last-modified.json b/document/data/doc-last-modified.json index 6aca79592..f8c6fe58f 100644 --- a/document/data/doc-last-modified.json +++ b/document/data/doc-last-modified.json @@ -104,7 +104,7 @@ "document/content/docs/upgrading/4-11/4111.mdx": "2025-08-07T22:49:09+08:00", "document/content/docs/upgrading/4-12/4120.mdx": "2025-08-12T22:45:19+08:00", "document/content/docs/upgrading/4-12/4121.mdx": "2025-08-15T22:53:06+08:00", - "document/content/docs/upgrading/4-12/4122.mdx": "2025-08-25T19:19:43+08:00", + "document/content/docs/upgrading/4-12/4122.mdx": "2025-08-26T14:35:39+08:00", "document/content/docs/upgrading/4-8/40.mdx": "2025-08-02T19:38:37+08:00", "document/content/docs/upgrading/4-8/41.mdx": "2025-08-02T19:38:37+08:00", "document/content/docs/upgrading/4-8/42.mdx": "2025-08-02T19:38:37+08:00", diff --git a/projects/app/src/components/Layout/navbar.tsx b/projects/app/src/components/Layout/navbar.tsx index 05aa99634..a36233179 100644 --- a/projects/app/src/components/Layout/navbar.tsx +++ b/projects/app/src/components/Layout/navbar.tsx @@ -11,6 +11,7 @@ import MyIcon from '@fastgpt/web/components/common/Icon'; import { useTranslation } from 'next-i18next'; import { useSystemStore } from '@/web/common/system/useSystemStore'; import MyTooltip from '@fastgpt/web/components/common/MyTooltip'; +import { getWebReqUrl } from '@fastgpt/web/common/system/utils'; export enum NavbarTypeEnum { normal = 'normal', @@ -147,7 +148,7 @@ const Navbar = ({ unread }: { unread: number }) => { ? { onClick: () => { if (item.link.startsWith('/chat')) { - window.open(item.link, '_blank', 'noopener,noreferrer'); + window.open(getWebReqUrl(item.link), '_blank', 'noopener,noreferrer'); return; } router.push(item.link);