|
@@ -193,7 +193,7 @@ export default {
|
|
|
this.dialogImageUrl = file.url;
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
- handleBeforeUpload() {
|
|
|
+ handleBeforeUpload(file) {
|
|
|
const isLt100M = file.size / 1024 / 1024 > 0.5 && file.size / 1024 / 1024 < 5;
|
|
|
if (!isLt100M) {
|
|
|
this.$message.error("上传照片大小要在0.5MB ~ 5MB之间哦!");
|