Commit 7b5bdafe authored by Sixiang_Zzb's avatar Sixiang_Zzb

上传图片的错误提示修改

parent 3728985e
...@@ -113,7 +113,7 @@ const PictureOptionsRow = (props: any) => { ...@@ -113,7 +113,7 @@ const PictureOptionsRow = (props: any) => {
} }
const isLt2M = file.size / 1024 / 1024 < 2; const isLt2M = file.size / 1024 / 1024 < 2;
if (!isLt2M) { if (!isLt2M) {
message.error('Image must smaller than 2MB!'); message.error('Image must be less than or equal to 2MB!');
} }
return isJpgOrPng && isLt2M; return isJpgOrPng && isLt2M;
} }
......
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