Commit f48e9d5c authored by yun's avatar yun

修改问题17

parent 535c4cdf
......@@ -298,7 +298,7 @@ export const get = {
},
getReadyUrl: (params) => {
return axios({
url: api.getReadyFileUrl,
url: process.env.VUE_APP_BASE_API5 + api.getReadyFileUrl,
method: 'get',
params: params
})
......
......@@ -112,6 +112,10 @@ export default {
type: Number,
default: 0
},
showPage: {
type: Number,
default: 800
},
showLoading: {
type: Boolean,
default: true
......@@ -286,7 +290,7 @@ export default {
this.loading = true
this.src = pdf.createLoadingTask(this.pdfSrc)
this.src.then(pdf => {
this.numPages = pdf.numPages
this.numPages = pdf.numPages > this.showPage ? this.showPage : pdf.numPages
this.page = this.startPage
this.$emit('loaded', pdf.numPages)
this.findOutPage = true
......
......@@ -167,6 +167,7 @@
<mt-pdf
:start-page="1"
@loaded="onPdfLoaded"
:showPage = "100"
v-if="previewType === 'pdf'"
:pdf-src="previewPicture"
:show-loading="false"
......
......@@ -622,6 +622,7 @@
:start-page="1"
@loaded="onPdfLoaded"
v-if="previewType === 'pdf'"
:showPage = "100"
:pdf-src="priviewPicture"
:show-loading="false"
/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment