diff --git a/frontend/src/pages/DataManagement/Detail/components/ImportConfiguration.tsx b/frontend/src/pages/DataManagement/Detail/components/ImportConfiguration.tsx
index 9105598..fa6292f 100644
--- a/frontend/src/pages/DataManagement/Detail/components/ImportConfiguration.tsx
+++ b/frontend/src/pages/DataManagement/Detail/components/ImportConfiguration.tsx
@@ -324,6 +324,14 @@ 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) {
@@ -447,7 +455,7 @@ export default function ImportConfiguration({
name="splitByLine"
valuePropName="checked"
>
-