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 {
406406 for (let i = 0 ; i < this .pages .length ; i++ ) {
407407 this .currentPage = i
408408 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 )
411411 }
412412 }
413413 this .currentPage = 0
414414 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+ }))
421421 clearInterval (checker)
422- // }
422+ }
423423 }, 100 )
424424
425425 },
You can’t perform that action at this time.
0 commit comments