fix:字节换算修改

This commit is contained in:
wyx
2023-02-24 14:10:38 +08:00
parent e94f577c6e
commit 5cf7c5042f

View File

@@ -406,8 +406,8 @@ const beforeUpload = (file) => {
message.error("仅支持jpg、gif、png、jpeg、svg、bmp格式!");
return false;
}
let isLt1M = file.size < 2097152;
let isLt1M = file.size < 2000000;
console.log(file.size, isLt1M)
if (!isLt1M) {
message.error("图片大小超过2MB!");