|
@@ -119,8 +119,8 @@ export default {
|
|
blobInfo.blob().type === "image/GIF" ||
|
|
blobInfo.blob().type === "image/GIF" ||
|
|
blobInfo.blob().type === "image/jpg" ||
|
|
blobInfo.blob().type === "image/jpg" ||
|
|
blobInfo.blob().type === "image/BMP";
|
|
blobInfo.blob().type === "image/BMP";
|
|
- if (blobInfo.blob().size / 1024 / 1024 > 2) {
|
|
|
|
- failure("上传失败,图片大小请控制在 2M 以内");
|
|
|
|
|
|
+ if (blobInfo.blob().size / 1024 / 1024 > 10) {
|
|
|
|
+ failure("上传失败,图片大小请控制在 10M 以内");
|
|
} else if (blobInfo.blob().type == isAccord) {
|
|
} else if (blobInfo.blob().type == isAccord) {
|
|
failure("图片格式错误");
|
|
failure("图片格式错误");
|
|
} else {
|
|
} else {
|