|
@@ -110,6 +110,7 @@ export default {
|
|
|
const isLt2M = file.size / 1024 / 1024 < 5;
|
|
|
if (!isLt2M) {
|
|
|
this.$message.error("上传图片大小不能超过 5MB!");
|
|
|
+ return false;
|
|
|
}
|
|
|
this.uploadLoading = true;
|
|
|
this.type = "image";
|
|
@@ -147,6 +148,7 @@ export default {
|
|
|
const isLt2M = file.size / 1024 / 1024 < 5;
|
|
|
if (!isLt2M) {
|
|
|
this.$message.error("上传附件大小不能超过 5MB!");
|
|
|
+ return false;
|
|
|
}
|
|
|
this.uploadFileLoading = true;
|
|
|
this.type = "file";
|