Fix: Bug fixes #9869 (#10600)

### What problem does this PR solve?

Fix: Bug fixes #9869
- Added the disabled attribute to control the modal confirmation button
state
- Conditionally rendered the catalog enhancement toggle component
- Replaced the selector component and removed unused imports
- Removed redundant catalog enhancement text in the Chinese language
pack

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-10-16 15:43:05 +08:00
committed by GitHub
parent 7b664b5a84
commit e76db6e222
4 changed files with 8 additions and 6 deletions

View File

@ -7,7 +7,6 @@ import {
FormMessage,
} from '@/components/ui/form';
import { Radio } from '@/components/ui/radio';
import { RAGFlowSelect } from '@/components/ui/select';
import { Switch } from '@/components/ui/switch';
import { useTranslate } from '@/hooks/common-hooks';
import { cn } from '@/lib/utils';
@ -46,7 +45,7 @@ export function ChunkMethodItem(props: IProps) {
</FormLabel>
<div className={line === 1 ? 'w-3/4 ' : 'w-full'}>
<FormControl>
<RAGFlowSelect
<SelectWithSearch
{...field}
options={parserList}
placeholder={t('chunkMethodPlaceholder')}