From 078f303f57693831a9e17db739931c31ffc62198 Mon Sep 17 00:00:00 2001
From: Jerry Yan <792602257@qq.com>
Date: Wed, 4 Feb 2026 15:48:01 +0800
Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20=E4=BF=AE=E5=A4=8D=20hasArchiv?=
=?UTF-8?q?e=20=E5=92=8C=20splitByLine=20=E5=90=8C=E6=97=B6=E5=AD=98?=
=?UTF-8?q?=E5=9C=A8=E7=9A=84=E9=97=AE=E9=A2=98"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This reverts commit 50f2da55030c82f510cd2254123cd57975c10bd0.
---
.../Detail/components/ImportConfiguration.tsx | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
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"
>
-