feat: 修改图片裁剪中选择图片最大为2M

This commit is contained in:
XieYongHong 2023-06-08 17:10:10 +08:00
parent 98214420cb
commit 93aed922bc
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ const handleChange = (info: UploadChangeParam) => {
const beforeUpload = (file: UploadProps['fileList'][number]) => {
const isType = imageTypes.includes(file.type);
const maxSize = props.size || 4
const maxSize = props.size || 2 //
if (!isType) {
if (props.errorMessage) {
message.error(props.errorMessage);