Explorar o código

图片上传返回格式统一

zhouna %!s(int64=6) %!d(string=hai) anos
pai
achega
82365a70d9
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  1. 9 1
      src/components/icss/MedicineInfoPg.vue

+ 9 - 1
src/components/icss/MedicineInfoPg.vue

@@ -63,7 +63,15 @@
               },
               action: config.urls.promptServer,
               response: (res) => {
-                return config.imgHost+res.url;
+                if(res.code=='0'){
+                  return config.imgHost+res.data.url;
+                }else{
+                  this.$message({
+                    showClose: true,
+                    message: res.msg,
+                    type: 'warning'
+                  })
+                }
               }
             },
             toolbar: {