Commit 19c903b4 authored by 前端-甘科's avatar 前端-甘科

Merge branch 'fix-v2-220418' into 'v2-220418'

Fix v2 220418 See merge request linkseeks-design/pro-platform!670
parents a1064e3c a84b7384
...@@ -80,6 +80,12 @@ const UploadVoucherModal: React.FC<UploadVocherProps> = (props) => { ...@@ -80,6 +80,12 @@ const UploadVoucherModal: React.FC<UploadVocherProps> = (props) => {
}, []) }, [])
const handleOnFileChange = (info: UploadChangeParam) => { const handleOnFileChange = (info: UploadChangeParam) => {
console.log(info);
const isSizeLimit = info.file.size / 1024 < fileMaxSize;
if (!isSizeLimit) {
return;
}
const fileList = info.fileList; const fileList = info.fileList;
const newList = fileList.map((file) => { const newList = fileList.map((file) => {
return { return {
......
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