zydx-plus 1.35.621 → 1.35.622

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.35.621",
3
+ "version": "1.35.622",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -1538,11 +1538,12 @@ export default {
1538
1538
  return n[v]
1539
1539
  },
1540
1540
  readPdf: debounce(function () {
1541
+ if(Object.keys(pdfs).length === 0) return
1541
1542
  setTimeout(() => {
1542
1543
  let that = this
1543
1544
  that.mouse()
1544
1545
  that.$nextTick(() => {
1545
- pdfs[that.id].getPage(that.pageIndex).then(function (page) {
1546
+ pdfs[that.id]?.getPage(that.pageIndex).then(function (page) {
1546
1547
  that.doc = page
1547
1548
  that.viewWidth = page.view[2] - page.view[0]
1548
1549
  that.viewHeight = page.view[3] - page.view[1]
package/src/index.js CHANGED
@@ -87,7 +87,7 @@ function install(app) {
87
87
  }
88
88
 
89
89
  export default {
90
- version: '1.35.621',
90
+ version: '1.35.622',
91
91
  install,
92
92
  Calendar,
93
93
  Message,