mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-07-14 03:41:48 +08:00
### What problem does this PR solve? Fix: Remove the document language parameter. #5686 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
4f9504305a
commit
5229a76f68
@ -2,7 +2,7 @@ import { DocumentParserType } from '@/constants/knowledge';
|
|||||||
import { useTranslate } from '@/hooks/common-hooks';
|
import { useTranslate } from '@/hooks/common-hooks';
|
||||||
import { normFile } from '@/utils/file-util';
|
import { normFile } from '@/utils/file-util';
|
||||||
import { PlusOutlined } from '@ant-design/icons';
|
import { PlusOutlined } from '@ant-design/icons';
|
||||||
import { Button, Form, Input, Radio, Select, Space, Upload } from 'antd';
|
import { Button, Form, Input, Radio, Space, Upload } from 'antd';
|
||||||
import { FormInstance } from 'antd/lib';
|
import { FormInstance } from 'antd/lib';
|
||||||
import { useEffect, useMemo, useState } from 'react';
|
import { useEffect, useMemo, useState } from 'react';
|
||||||
import {
|
import {
|
||||||
@ -27,8 +27,6 @@ import { TagConfiguration } from './tag';
|
|||||||
|
|
||||||
import styles from '../index.less';
|
import styles from '../index.less';
|
||||||
|
|
||||||
const { Option } = Select;
|
|
||||||
|
|
||||||
const ConfigurationComponentMap = {
|
const ConfigurationComponentMap = {
|
||||||
[DocumentParserType.Naive]: NaiveConfiguration,
|
[DocumentParserType.Naive]: NaiveConfiguration,
|
||||||
[DocumentParserType.Qa]: QAConfiguration,
|
[DocumentParserType.Qa]: QAConfiguration,
|
||||||
@ -99,19 +97,6 @@ export const ConfigurationForm = ({ form }: { form: FormInstance }) => {
|
|||||||
<Form.Item name="description" label={t('description')}>
|
<Form.Item name="description" label={t('description')}>
|
||||||
<Input />
|
<Input />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
|
||||||
label={t('language')}
|
|
||||||
name="language"
|
|
||||||
initialValue={'English'}
|
|
||||||
rules={[{ required: true, message: t('languageMessage') }]}
|
|
||||||
>
|
|
||||||
<Select placeholder={t('languagePlaceholder')}>
|
|
||||||
<Option value="English">{t('english')}</Option>
|
|
||||||
<Option value="Chinese">{t('chinese')}</Option>
|
|
||||||
<Option value="Vietnamese">{t('vietnamese')}</Option>
|
|
||||||
<Option value="Portuguese (Brazil)">{t('portugueseBr')}</Option>
|
|
||||||
</Select>
|
|
||||||
</Form.Item>
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="permission"
|
name="permission"
|
||||||
label={t('permissions')}
|
label={t('permissions')}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user