fix: #209 after saving the knowledge base configuration, jump to the dataset page (#212)

### What problem does this PR solve?
fix: #209 after saving the knowledge base configuration, jump to the
dataset page
feat: translate ConfigurationForm
feat: translate KnowledgeTesting
feat: translate document list page
feat: translate knowledge list page

Issue link: #209

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2024-04-03 11:21:54 +08:00
committed by GitHub
parent 392e515c3f
commit 9b9b6d5408
19 changed files with 299 additions and 196 deletions

View File

@ -22,6 +22,7 @@ import omit from 'lodash/omit';
import React, { useEffect, useMemo } from 'react';
import { useFetchParserListOnMount } from './hooks';
import { useTranslate } from '@/hooks/commonHooks';
import styles from './index.less';
const { CheckableTag } = Tag;
@ -56,6 +57,7 @@ const ChunkMethodModal: React.FC<IProps> = ({
documentExtension,
);
const [form] = Form.useForm();
const { t } = useTranslate('knowledgeDetails');
const handleOk = async () => {
const values = await form.validateFields();
@ -91,7 +93,7 @@ const ChunkMethodModal: React.FC<IProps> = ({
return (
<Modal
title="Chunk Method"
title={t('chunkMethod')}
open={visible}
onOk={handleOk}
onCancel={hideModal}