src/components/pdfview/index.vue
@@ -171,13 +171,16 @@ .then((res) => { try { if (typeof res === 'string' && res !== null) { console.log(134) this.totalPage = JSON.parse(res).totalPages } else if (typeof res === 'object' && res !== null) { console.log(res.totalPages) this.totalPage = res.totalPages } } catch (error) { console.log(error, 'pdf返回值类型错误'); } console.log(this.currentPage,"111") this.createDom(this.currentPage) this.loading = false })