diff --git a/frontend/src/pages/DataManagement/Detail/components/ImportConfiguration.tsx b/frontend/src/pages/DataManagement/Detail/components/ImportConfiguration.tsx index fa6292f..9105598 100644 --- a/frontend/src/pages/DataManagement/Detail/components/ImportConfiguration.tsx +++ b/frontend/src/pages/DataManagement/Detail/components/ImportConfiguration.tsx @@ -324,14 +324,6 @@ export default function ImportConfiguration({ setImportConfig((prev) => ({ ...prev, splitByLine: false })); }, [form, hasNonTextFile, importConfig.files, importConfig.splitByLine]); - // 当 hasArchive 变为 true 时,自动关闭 splitByLine - useEffect(() => { - if (importConfig.hasArchive && importConfig.splitByLine) { - form.setFieldsValue({ splitByLine: false }); - setImportConfig((prev) => ({ ...prev, splitByLine: false })); - } - }, [form, importConfig.hasArchive, importConfig.splitByLine]); - // Separate effect for fetching collection tasks when source changes useEffect(() => { if (open && importConfig.source === DataSource.COLLECTION) { @@ -455,7 +447,7 @@ export default function ImportConfiguration({ name="splitByLine" valuePropName="checked" > - + )}