You've already forked DataMate
refactor(config): 优化导入配置组件结构
- 重构 ImportConfiguration 组件的内部逻辑 - 提升代码可读性和维护性 - 优化组件性能表现 - 调整组件
This commit is contained in:
@@ -90,10 +90,10 @@ export default function ImportConfiguration({
|
|||||||
const originFile = (file as any).originFileObj || file;
|
const originFile = (file as any).originFileObj || file;
|
||||||
const slices = sliceFile(originFile);
|
const slices = sliceFile(originFile);
|
||||||
return {
|
return {
|
||||||
originFile: file,
|
originFile: originFile, // 传入真正的 File/Blob 对象
|
||||||
slices,
|
slices,
|
||||||
name: file.name,
|
name: file.name,
|
||||||
size: (file as any).size || originFile.size || 0,
|
size: originFile.size || 0,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user