mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
fix:字节换算修改
This commit is contained in:
@@ -407,7 +407,7 @@ const beforeUpload = (file) => {
|
||||
return false;
|
||||
}
|
||||
|
||||
let isLt1M = file.size < 2097152;
|
||||
let isLt1M = file.size < 2000000;
|
||||
console.log(file.size, isLt1M)
|
||||
if (!isLt1M) {
|
||||
message.error("图片大小超过2MB!");
|
||||
|
||||
Reference in New Issue
Block a user