Jelajahi Sumber

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

zhouna 6 tahun lalu
induk
melakukan
a27a59aa83
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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);