Explorar o código

上传图片接口格式对应修改

zhouna %!s(int64=6) %!d(string=hai) anos
pai
achega
a27a59aa83
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/components/preTreat/PubIndeptQa.vue

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

@@ -373,9 +373,9 @@
         this.imgList=[];
       },
       handleSuccess(response){
-        if(response.state==='SUCCESS'){
+        if(response.code==='0'){
           this.showFileList = true;
-          this.form.region13 = '{imageUrlPrefix}'+response.url;
+          this.form.region13 = '{imageUrlPrefix}'+response.data.url;
         }else{
           this.showFileList=false;
           this.warning(response.msg);