Browse Source

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

zhouna 6 years ago
parent
commit
a27a59aa83
1 changed files with 2 additions and 2 deletions
  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);