Эх сурвалжийг харах

pdf报告详情页加载问题

yujinwen 7 сар өмнө
parent
commit
4789b0a560
1 өөрчлөгдсөн 3 нэмэгдсэн , 13 устгасан
  1. 3 13
      src/views/report/PDF.vue

+ 3 - 13
src/views/report/PDF.vue

@@ -84,16 +84,6 @@ const handlePageScroll = useThrottleFn(() => {
   } else {
     showToTop.value = false
   }
-
-  if (page >= endPageNum) return
-  const clientHeight = document.documentElement.clientHeight || document.body.clientHeight; // 可视高度
-  const scrollHeight = document.body.scrollHeight; // 总高度
-  const bufferHeight = 400;
-  if ((scrollHeight - top - clientHeight) < bufferHeight + 100) {
-    console.log('触底')
-    page++
-    handleLoadContent();
-  }
 }, 300)
 
 function handleBackTop() {
@@ -216,9 +206,9 @@ function handleGoTestRisk(){
 .report-ht_pdf-wrap {
   background-color: #fff;
   padding: var(--page-padding);
-  display: flex;
-  flex-direction: column;
-  overflow-y: auto;
+  // display: flex;
+  // flex-direction: column;
+  // overflow-y: auto;
   .title-box {
     font-size: 36px;
     line-height: 44px;