Commit 51991b73 authored by zhuyangbin's avatar zhuyangbin

下载

parent 795fb51d
......@@ -32,6 +32,7 @@ const UploadCom = (props) => {
value: item.value,
size: item.size,
uid: item.value,
status: 'done',
...checkoutFileType(item.value),
};
});
......@@ -50,6 +51,7 @@ const UploadCom = (props) => {
name: file.name,
value: url,
size: file.size,
status: 'done',
...checkoutFileType(url),
};
};
......@@ -127,7 +129,9 @@ const UploadCom = (props) => {
onSaveFileList(newFileList);
};
const onDownload = (file) => {};
const onDownload = (file) => {
window.open(file.value);
};
const beforeUpload = async () => {
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