|
@@ -97,8 +97,7 @@ export default {
|
|
|
const loadingTask = VuePdf.createLoadingTask(that.fileUrl);
|
|
|
const pdf = await loadingTask.promise;
|
|
|
this.numPages = pdf.numPages;
|
|
|
- this.loadedPages = this.numPages;
|
|
|
-
|
|
|
+ // this.loadedPages = this.numPages;
|
|
|
if (this.numPages == 0) {
|
|
|
return;
|
|
|
}
|
|
@@ -141,8 +140,9 @@ export default {
|
|
|
if (!this.loadAll) {
|
|
|
this.loadAll = true;
|
|
|
}
|
|
|
- if (this.loadedPages < this.numPages) {
|
|
|
- this.loadedPages += 1;
|
|
|
+ var p = this.loadedPages;
|
|
|
+ if (p < this.numPages) {
|
|
|
+ this.loadedPages = p + 1;
|
|
|
}
|
|
|
}
|
|
|
},
|