feat: add graph tab to header #918 (#1374)

### What problem does this PR solve?

feat: add graph tab to header #918

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-07-04 16:26:20 +08:00
committed by GitHub
parent 258c9ea644
commit 3b50389ee7
8 changed files with 47 additions and 18 deletions

View File

@ -9,6 +9,7 @@ import { useLocation } from 'umi';
import Toolbar from '../right-toolbar';
import { useFetchAppConf } from '@/hooks/logicHooks';
import { NodeIndexOutlined } from '@ant-design/icons';
import styles from './index.less';
const { Header } = Layout;
@ -26,6 +27,7 @@ const RagHeader = () => {
() => [
{ path: '/knowledge', name: t('knowledgeBase'), icon: KnowledgeBaseIcon },
{ path: '/chat', name: t('chat'), icon: StarIon },
{ path: '/flow', name: t('flow'), icon: NodeIndexOutlined },
{ path: '/file', name: t('fileManager'), icon: FileIcon },
],
[t],