File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -406,20 +406,20 @@ export default {
406
406
for (let i = 0 ; i < this .pages .length ; i++ ) {
407
407
this .currentPage = i
408
408
for (let j = 0 ; j < this .initTextFields .length ; j++ ) {
409
- // const text = this.initTextFields[j]
410
- // this.addTextField(text, 0, j * 60, this.currentPage)
409
+ const text = this .initTextFields [j]
410
+ this .addTextField (text, 0 , j * 60 , this .currentPage )
411
411
}
412
412
}
413
413
this .currentPage = 0
414
414
const checker = setInterval (() => {
415
- // if (this.$refs.textItem.length === this.initTextFields.length * this.pages.length) {
416
- // document.getElementById('pdfBody').dispatchEvent(new MouseEvent('mousedown', {
417
- // bubbles: true,
418
- // cancelable: true,
419
- // view: window,
420
- // }))
415
+ if (this .$refs .textItem .length === this .initTextFields .length * this .pages .length ) {
416
+ document .getElementById (' pdfBody' ).dispatchEvent (new MouseEvent (' mousedown' , {
417
+ bubbles: true ,
418
+ cancelable: true ,
419
+ view: window ,
420
+ }))
421
421
clearInterval (checker)
422
- // }
422
+ }
423
423
}, 100 )
424
424
425
425
},
You can’t perform that action at this time.
0 commit comments