diff --git a/web/src/pages/add-knowledge/components/knowledge-file/chunk-method-modal.tsx b/web/src/pages/add-knowledge/components/knowledge-file/chunk-method-modal.tsx index 10a3092519c6464787ef2f3e507d30c230b36404..0d9a5275b4360df07c9b5825040da7407f0a21a8 100644 --- a/web/src/pages/add-knowledge/components/knowledge-file/chunk-method-modal.tsx +++ b/web/src/pages/add-knowledge/components/knowledge-file/chunk-method-modal.tsx @@ -36,7 +36,6 @@ interface IProps extends Omit<IModalManagerChildrenProps, 'showModal'> { parserId: string; parserConfig: IKnowledgeFileParserConfig; documentType: string; - disabled: boolean; } const hidePagesChunkMethods = ['qa', 'table', 'picture', 'resume', 'one']; @@ -46,7 +45,6 @@ const ChunkMethodModal: React.FC<IProps> = ({ onOk, hideModal, visible, - disabled, documentType, parserConfig, }) => { @@ -96,7 +94,6 @@ const ChunkMethodModal: React.FC<IProps> = ({ onOk={handleOk} onCancel={hideModal} afterClose={afterClose} - okButtonProps={{ disabled }} > <Space size={[0, 8]} wrap> <div className={styles.tags}> @@ -106,9 +103,7 @@ const ChunkMethodModal: React.FC<IProps> = ({ key={x.value} checked={selectedTag === x.value} onChange={(checked) => { - if (!disabled) { - handleChange(x.value, checked); - } + handleChange(x.value, checked); }} > {x.label} @@ -120,12 +115,7 @@ const ChunkMethodModal: React.FC<IProps> = ({ <Divider></Divider> { - <Form - name="dynamic_form_nest_item" - autoComplete="off" - form={form} - disabled={disabled} - > + <Form name="dynamic_form_nest_item" autoComplete="off" form={form}> {showPages && ( <> <Space> diff --git a/web/src/pages/add-knowledge/components/knowledge-file/index.tsx b/web/src/pages/add-knowledge/components/knowledge-file/index.tsx index c3edece59df800bc29f8bb3ce664735717fdae0d..18f8475a79a81ccb4d52efd7d469ef9958afd041 100644 --- a/web/src/pages/add-knowledge/components/knowledge-file/index.tsx +++ b/web/src/pages/add-knowledge/components/knowledge-file/index.tsx @@ -231,7 +231,6 @@ const KnowledgeFile = () => { onOk={onChangeParserOk} visible={changeParserVisible} hideModal={hideChangeParserModal} - disabled={currentRecord.chunk_num > 0} loading={changeParserLoading} /> <RenameModal