|
@@ -52,9 +52,7 @@ export default {
|
|
|
initPdfH5() {
|
|
|
this.loading = true
|
|
|
this.pdfH5 = new Pdfh5('#pdf-canvas', {
|
|
|
- pdfurl:
|
|
|
- 'http://localhost:8080/jy_mobile/src/assets/image/demo.pdf' ||
|
|
|
- this.url, // 'http://localhost:8080/jy_mobile/src/assets/image/pdf.pdf'
|
|
|
+ pdfurl: this.url, // 'http://localhost:8080/jy_mobile/src/assets/image/pdf.pdf'
|
|
|
lazy: true, // 启用懒加载
|
|
|
renderType: 'canvas', // 渲染方式,可选值:canvas、svg
|
|
|
maxZoom: 2, // 手势缩放最大倍数
|