fix: chat navbar (#5537)

This commit is contained in:
Archer
2025-08-26 15:15:21 +08:00
committed by GitHub
parent 970476950a
commit 2e2e919d1d
3 changed files with 10 additions and 8 deletions

View File

@@ -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);