askbot-dragon 1.5.69-beta → 1.5.70-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div class="pdf_view" id="pdf_view" :style="{
|
|
3
3
|
marginTop: isPC ? '50px' : '',
|
|
4
4
|
marginBottom: tagIds.length > 1 ? '60px' : '0px',
|
|
5
5
|
height: setHeight
|
|
@@ -911,7 +911,7 @@ export default {
|
|
|
911
911
|
|
|
912
912
|
//获取页面最大高度
|
|
913
913
|
|
|
914
|
-
var page_height = document.getElementById('
|
|
914
|
+
var page_height = document.getElementById('pdf_container_view').scrollHeight;
|
|
915
915
|
|
|
916
916
|
// var page_height = document.body.scrollHeight+document.body.scrollTop;
|
|
917
917
|
|
|
@@ -1012,7 +1012,8 @@ export default {
|
|
|
1012
1012
|
oTemp.appendChild(mask_div);
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
|
-
|
|
1015
|
+
let pageDom = document.getElementById('pdf_container_view')
|
|
1016
|
+
pageDom.appendChild(oTemp);
|
|
1016
1017
|
|
|
1017
1018
|
},
|
|
1018
1019
|
},
|
|
@@ -1212,9 +1213,9 @@ export default {
|
|
|
1212
1213
|
// tagIds 会按照gpt识别的生成有序的数组,前端直接按照下标的顺序取就可以了
|
|
1213
1214
|
// 缓存拿到的所有数据
|
|
1214
1215
|
this.cachePdf = res.data.data
|
|
1215
|
-
let publicPageFileUrl = res.data.data[0].publicPageFileUrl
|
|
1216
|
+
let publicPageFileUrl = res.data.data && res.data.data[0] ? res.data.data[0].publicPageFileUrl : ''
|
|
1216
1217
|
this.currentPage = 0
|
|
1217
|
-
if (publicPageFileUrl.substring(publicPageFileUrl.lastIndexOf('.')) === '.pdf') {
|
|
1218
|
+
if (publicPageFileUrl && publicPageFileUrl.substring(publicPageFileUrl.lastIndexOf('.')) === '.pdf') {
|
|
1218
1219
|
this.preViewType = 'pdf'
|
|
1219
1220
|
this.setPageAllLine(this.cachePdf)
|
|
1220
1221
|
this.getpdfResloutePage(res.data.data[0])
|