|
|
@@ -129,6 +129,7 @@ const getFileList = async () => {
|
|
|
|
|
|
// 多选框选中文件数据
|
|
|
function handleSelectionFile(selection: MinioDataVO[]) {
|
|
|
+ console.log('[handleSelectionFile] selection:', selection);
|
|
|
if (props.single && props.onlyImage) {
|
|
|
// 单选且仅图片
|
|
|
if (selection.length > 0) {
|
|
|
@@ -141,7 +142,8 @@ function handleSelectionFile(selection: MinioDataVO[]) {
|
|
|
type: img.type,
|
|
|
duration: 10,
|
|
|
order: 1,
|
|
|
- url: img.fileUrl
|
|
|
+ url: img.fileUrl,
|
|
|
+ md5: img.md5
|
|
|
}
|
|
|
];
|
|
|
} else {
|
|
|
@@ -160,7 +162,8 @@ function handleSelectionFile(selection: MinioDataVO[]) {
|
|
|
type: selection[0].type,
|
|
|
duration: selection[0].duration,
|
|
|
order: 1,
|
|
|
- url: selection[0].fileUrl
|
|
|
+ url: selection[0].fileUrl,
|
|
|
+ md5: selection[0].md5
|
|
|
}
|
|
|
];
|
|
|
} else {
|
|
|
@@ -174,7 +177,8 @@ function handleSelectionFile(selection: MinioDataVO[]) {
|
|
|
type: item.type,
|
|
|
duration: item.duration,
|
|
|
order: idx + 1,
|
|
|
- url: item.fileUrl
|
|
|
+ url: item.fileUrl,
|
|
|
+ md5: item.md5
|
|
|
}));
|
|
|
}
|
|
|
}
|