梁展鹏 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之间哦!");