Jelajahi Sumber

Merge branch 'dev/v1.1.1_tsz' of jianyu/web into feature/v1.1.1

汤世哲 4 bulan lalu
induk
melakukan
e392571402
1 mengubah file dengan 3 tambahan dan 7 penghapusan
  1. 3 7
      apps/mobile/src/views/common/pdfViewExample.vue

+ 3 - 7
apps/mobile/src/views/common/pdfViewExample.vue

@@ -1,13 +1,9 @@
 <template>
   <div class="pdf-view-example j-contanter">
     <div class="pdf-container j-main">
-      <iframe
-        frameborder="0"
-        :src="pdfUrl"
-        sandbox="allow-same-origin allow-scripts"
-        allow="pdf"
-        :style="{ height: '100%' }"
-      />
+      <object :data="pdfUrl" type="application/pdf" width="100%" height="100%">
+        <p>PDF 无法显示,请下载查看:<a :href="pdfUrl">下载 PDF</a></p>
+      </object>
     </div>
     <div v-if="!getUserId" class="j-footer">
       <a href="/jyapp/free/login?back=index&to=back&activity=bidCreditReportPreview" class="adsense-container">