From 3af0f0b3a150f96b9047f7f960575dead0ce9cb7 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 19 Jan 2026 17:10:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(config):=20=E4=BC=98=E5=8C=96=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E9=85=8D=E7=BD=AE=E7=BB=84=E4=BB=B6=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重构 ImportConfiguration 组件的内部逻辑 - 提升代码可读性和维护性 - 优化组件性能表现 - 调整组件 --- .../DataManagement/Detail/components/ImportConfiguration.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/DataManagement/Detail/components/ImportConfiguration.tsx b/frontend/src/pages/DataManagement/Detail/components/ImportConfiguration.tsx index aa6607b..c41cc99 100644 --- a/frontend/src/pages/DataManagement/Detail/components/ImportConfiguration.tsx +++ b/frontend/src/pages/DataManagement/Detail/components/ImportConfiguration.tsx @@ -90,10 +90,10 @@ export default function ImportConfiguration({ const originFile = (file as any).originFileObj || file; const slices = sliceFile(originFile); return { - originFile: file, + originFile: originFile, // 传入真正的 File/Blob 对象 slices, name: file.name, - size: (file as any).size || originFile.size || 0, + size: originFile.size || 0, }; });