|
@@ -643,10 +643,10 @@ const beforeRead = (file: any) => {
|
|
|
message: '上传图片必须是JPG/PNG/BMP/GIF类型!'
|
|
message: '上传图片必须是JPG/PNG/BMP/GIF类型!'
|
|
|
});
|
|
});
|
|
|
return false;
|
|
return false;
|
|
|
- } else if (file.size / 1024 / 1024 > 2) {
|
|
|
|
|
|
|
+ } else if (file.size / 1024 / 1024 > 4) {
|
|
|
showNotify({
|
|
showNotify({
|
|
|
type: 'danger',
|
|
type: 'danger',
|
|
|
- message: '图片大小不能超过2MB!'
|
|
|
|
|
|
|
+ message: '图片大小不能超过4MB!'
|
|
|
});
|
|
});
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|