diff --git a/components/apolloTable/component/base/extra/upload/index.tsx b/components/apolloTable/component/base/extra/upload/index.tsx index 2b8e1b9acdba7594cf93843216ac621eff6ca0d6..5877b4e75e5098b09c51165faeded2ffea75f5d7 100644 --- a/components/apolloTable/component/base/extra/upload/index.tsx +++ b/components/apolloTable/component/base/extra/upload/index.tsx @@ -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();