소스 검색

图片上传限制2M

zhouna 6 년 전
부모
커밋
9ebfefe602
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/components/preTreat/PubIndeptQa.vue

+ 2 - 2
src/components/preTreat/PubIndeptQa.vue

@@ -169,7 +169,7 @@
                           prop="region13">
                 <el-upload
                         :class="form.region13?'upload-hide':''"
-                        :limit="1"
+                        :limit="2"
                         :action="uploadUrl"
                         list-type="picture"
                         :file-list="imgList"
@@ -352,7 +352,7 @@
           this.warning(response.msg);
         }
       },
-      handleError(){
+      handleError(err, file, fileList){
         this.showFileList=false;
       },
       getDropList() {