Commit d255bbb9 authored by miaojiale's avatar miaojiale

修复bug

parent cf743fab
......@@ -38,13 +38,6 @@ export default {
timeout: null,
}
},
watch: {
showPdf(v) {
if (v) {
this.loadPDF()
}
},
},
mounted() {},
methods: {
loadPDF() {
......
......@@ -45,7 +45,7 @@
></el-pagination>
</div>
</div>
<!-- 自动提醒 -->
<!-- 弹窗 -->
<el-dialog
custom-class="pdfDialog"
:title="''"
......@@ -54,17 +54,14 @@
:close-on-press-escape="false"
:show-close="true"
width="70%"
:destroy-on-close="true"
top="10vh"
>
<div class="innerBody">
<div class="title">{{ curPdf.articleTitle }}</div>
<div class="refuteList">
<!-- <pdf :src="pdfSrc"></pdf> -->
<pdf-view
ref="pdfView"
:pdf-src="pdfSrc"
:showPdf="showPdf"
></pdf-view>
<pdf-view ref="pdfView" :pdf-src="pdfSrc"></pdf-view>
</div>
</div>
</el-dialog>
......@@ -101,7 +98,15 @@ export default {
pdfSrc: "",
}
},
watch: {},
watch: {
showPdf(v) {
if (v) {
setTimeout(() => {
this.$refs.pdfView.loadPDF()
}, 250)
}
},
},
mounted() {
if (this.$route.query.tabIndex) {
this.activeBar = this.$route.query.tabIndex
......
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