浏览代码

图片上传限制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() {