|
@@ -648,15 +648,15 @@
|
|
|
//上传相关
|
|
|
beforeImageUpload(file) {
|
|
|
const isJPG = (file.type === 'image/jpeg' || file.type === 'image/png');
|
|
|
- const isLt2M = file.size / 1024 / 1024 < 2;
|
|
|
+ const isLt5M = file.size / 1024 / 1024 < 5;
|
|
|
|
|
|
if (!isJPG) {
|
|
|
this.$message.error('上传图片只能是 JPG、PNG 格式!');
|
|
|
}
|
|
|
- if (!isLt2M) {
|
|
|
- this.$message.error('上传图片大小不能超过 2MB!');
|
|
|
+ if (!isLt5M) {
|
|
|
+ this.$message.error('上传图片大小不能超过 5MB!');
|
|
|
}
|
|
|
- return isJPG && isLt2M;
|
|
|
+ return isJPG && isLt5M;
|
|
|
},
|
|
|
handlePictureCardPreview(file) {
|
|
|
this.dialogImageUrl = file.url;
|