梁展鹏 3 년 전
부모
커밋
1f753ea2d3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/Upload.vue

+ 1 - 1
src/components/Upload.vue

@@ -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之间哦!");