diff --git a/web/src/assets/svg/graph.svg b/web/src/assets/svg/graph.svg
new file mode 100644
index 0000000000..b0b4ced2ae
--- /dev/null
+++ b/web/src/assets/svg/graph.svg
@@ -0,0 +1,6 @@
+
\ No newline at end of file
diff --git a/web/src/layouts/components/header/index.less b/web/src/layouts/components/header/index.less
index d1ba8517d0..bb3edc39c0 100644
--- a/web/src/layouts/components/header/index.less
+++ b/web/src/layouts/components/header/index.less
@@ -52,4 +52,6 @@
}
.radioButtonIcon {
vertical-align: middle;
+ max-width: 16px;
+ max-height: 16px;
}
diff --git a/web/src/layouts/components/header/index.tsx b/web/src/layouts/components/header/index.tsx
index 47f9272432..ea515e245f 100644
--- a/web/src/layouts/components/header/index.tsx
+++ b/web/src/layouts/components/header/index.tsx
@@ -1,15 +1,15 @@
-import { ReactComponent as StarIon } from '@/assets/svg/chat-star.svg';
import { ReactComponent as FileIcon } from '@/assets/svg/file-management.svg';
+import { ReactComponent as GraphIcon } from '@/assets/svg/graph.svg';
import { ReactComponent as KnowledgeBaseIcon } from '@/assets/svg/knowledge-base.svg';
import { useTranslate } from '@/hooks/commonHooks';
import { useNavigateWithFromState } from '@/hooks/routeHook';
-import { Layout, Radio, Space, theme } from 'antd';
+import { Flex, Layout, Radio, Space, theme } from 'antd';
import { useCallback, useMemo } from 'react';
import { useLocation } from 'umi';
import Toolbar from '../right-toolbar';
import { useFetchAppConf } from '@/hooks/logicHooks';
-import { NodeIndexOutlined } from '@ant-design/icons';
+import { MessageOutlined } from '@ant-design/icons';
import styles from './index.less';
const { Header } = Layout;
@@ -26,8 +26,8 @@ const RagHeader = () => {
const tagsData = useMemo(
() => [
{ path: '/knowledge', name: t('knowledgeBase'), icon: KnowledgeBaseIcon },
- { path: '/chat', name: t('chat'), icon: StarIon },
- { path: '/flow', name: t('flow'), icon: NodeIndexOutlined },
+ { path: '/chat', name: t('chat'), icon: MessageOutlined },
+ { path: '/flow', name: t('flow'), icon: GraphIcon },
{ path: '/file', name: t('fileManager'), icon: FileIcon },
],
[t],
@@ -75,13 +75,13 @@ const RagHeader = () => {
onClick={() => handleChange(item.path)}
key={item.name}
>
-
+
{item.name}
-
+
))}