refactor(config): 优化导入配置组件结构

- 重构 ImportConfiguration 组件的内部逻辑
- 提升代码可读性和维护性
- 优化组件性能表现
- 调整组件
This commit is contained in:
2026-01-19 17:10:53 +08:00
parent 0cd30a9085
commit 3af0f0b3a1

View File

@@ -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,
};
});