- {activeKey === KnowledgeRouteKey.Dataset && !doc_id && (
-
- )}
- {activeKey === KnowledgeRouteKey.Configration && (
-
- )}
- {activeKey === KnowledgeRouteKey.Testing && }
- {activeKey === KnowledgeRouteKey.Dataset && !!doc_id && (
-
- )}
+
diff --git a/web/src/pages/knowledge/index.tsx b/web/src/pages/knowledge/index.tsx
index 234a9a408..d15cca1d7 100644
--- a/web/src/pages/knowledge/index.tsx
+++ b/web/src/pages/knowledge/index.tsx
@@ -1,6 +1,7 @@
import { ReactComponent as FilterIcon } from '@/assets/filter.svg';
+import { KnowledgeRouteKey } from '@/constants/knowledge';
import { PlusOutlined } from '@ant-design/icons';
-import { Button, Col, Row, Space } from 'antd';
+import { Button, Flex, Space } from 'antd';
import { useCallback, useEffect } from 'react';
import { useDispatch, useNavigate, useSelector } from 'umi';
import styles from './index.less';
@@ -20,7 +21,7 @@ const Knowledge = () => {
}, []);
const handleAddKnowledge = () => {
- navigate(`add/setting`);
+ navigate(`/knowledge/${KnowledgeRouteKey.Configuration}`);
};
useEffect(() => {
@@ -50,7 +51,7 @@ const Knowledge = () => {
-