소스 검색

PDF文档外部是绝对路径

zhuliu 1 년 전
부모
커밋
7be18fdd1e
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      src/views/project/patentDetails/components/patentMessage/PatentPDF.vue

+ 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
       })