diff --git a/web/src/hooks/flow-hooks.ts b/web/src/hooks/flow-hooks.ts index d26567e4c..e86560b25 100644 --- a/web/src/hooks/flow-hooks.ts +++ b/web/src/hooks/flow-hooks.ts @@ -11,7 +11,7 @@ export const EmptyDsl = { graph: { nodes: [ { - id: 'Begin', + id: 'begin', type: 'beginNode', position: { x: 50, diff --git a/web/src/layouts/components/header/index.tsx b/web/src/layouts/components/header/index.tsx index 846397094..47f927243 100644 --- a/web/src/layouts/components/header/index.tsx +++ b/web/src/layouts/components/header/index.tsx @@ -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], diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index 6791ac4a9..9c009a6e1 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -57,6 +57,7 @@ export default { setting: '用户设置', logout: '登出', fileManager: 'File Management', + flow: 'Graph', }, knowledgeList: { welcome: 'Welcome back', diff --git a/web/src/pages/flow/categorize-form/index.tsx b/web/src/pages/flow/categorize-form/index.tsx index de0fc5a35..ad61bfe60 100644 --- a/web/src/pages/flow/categorize-form/index.tsx +++ b/web/src/pages/flow/categorize-form/index.tsx @@ -18,8 +18,8 @@ const CategorizeForm = ({ form, onValuesChange, node }: IOperatorForm) => { return (