Commit 51991b73 authored by zhuyangbin's avatar zhuyangbin

下载

parent 795fb51d
...@@ -32,6 +32,7 @@ const UploadCom = (props) => { ...@@ -32,6 +32,7 @@ const UploadCom = (props) => {
value: item.value, value: item.value,
size: item.size, size: item.size,
uid: item.value, uid: item.value,
status: 'done',
...checkoutFileType(item.value), ...checkoutFileType(item.value),
}; };
}); });
...@@ -50,6 +51,7 @@ const UploadCom = (props) => { ...@@ -50,6 +51,7 @@ const UploadCom = (props) => {
name: file.name, name: file.name,
value: url, value: url,
size: file.size, size: file.size,
status: 'done',
...checkoutFileType(url), ...checkoutFileType(url),
}; };
}; };
...@@ -127,7 +129,9 @@ const UploadCom = (props) => { ...@@ -127,7 +129,9 @@ const UploadCom = (props) => {
onSaveFileList(newFileList); onSaveFileList(newFileList);
}; };
const onDownload = (file) => {}; const onDownload = (file) => {
window.open(file.value);
};
const beforeUpload = async () => { const beforeUpload = async () => {
await getToken(); await getToken();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment