Kaynağa Gözat

PDF文档外部是绝对路径

zhuliu 1 yıl önce
ebeveyn
işleme
7be18fdd1e

+ 6 - 2
src/views/project/patentDetails/components/patentMessage/PatentPDF.vue

@@ -97,14 +97,18 @@ export default {
         return item.type == this.pdfType
       })
       var guid = ''
-      if (obj) {//外部内部是返回guid
+      if (obj) {//内部是返回guid,外部返回绝对路径
         guid = obj.pdfGuid
       }else{
         this.pdfType = this.patent.pdf[0].type
         guid = this.patent.pdf[0].pdfGuid
       }
+      if (this.outside) {
+        this.src = guid
+      }else{
+        this.src = this.$commonJS.checkGuid(guid)
+      }
       
-      this.src = this.$commonJS.checkGuid(guid)
       this.$nextTick(() => {
         this.show = true
       })