fix: optional chaining bug

master
丁锐 2021-12-06 17:18:09 +08:00
parent e4f3591466
commit e8452c91df
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "pdf-viewer-vue",
"version": "0.2.0",
"version": "0.2.1",
"description": "PDF viewer component for Vue 2 and Vue 3",
"keywords": [
"vue",

View File

@ -207,7 +207,7 @@ export default {
methods: {
printPDF() {
const contentWindow = this.$refs.iframe.getContentWindow()
contentWindow?.print()
contentWindow.print()
},
updateZoomFullpage() {
const perViewerHeight = this.viewerContentHeight / this.total