Sfoglia il codice sorgente

图片上传限制2M

zhouna 6 anni fa
parent
commit
9ebfefe602
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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() {