Commit 765df424 authored by ganke's avatar ganke

fix: 应付账单的图片限制在200kb以内的限制补充

parent cd6d77a3
......@@ -80,6 +80,12 @@ const UploadVoucherModal: React.FC<UploadVocherProps> = (props) => {
}, [])
const handleOnFileChange = (info: UploadChangeParam) => {
console.log(info);
const isSizeLimit = info.file.size / 1024 < fileMaxSize;
if (!isSizeLimit) {
return;
}
const fileList = info.fileList;
const newList = fileList.map((file) => {
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