Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/perTreat' into test

zhouna 6 anni fa
parent
commit
72753a5730
1 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  1. 9 1
      src/components/icss/MedicineInfoPg.vue

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

@@ -63,7 +63,15 @@
               },
               },
               action: config.urls.promptServer,
               action: config.urls.promptServer,
               response: (res) => {
               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: {
             toolbar: {