Просмотр исходного кода

feat:芝麻报告iframe高度调整

yangfeng 4 дней назад
Родитель
Сommit
8647fa4b73
1 измененных файлов с 6 добавлено и 5 удалено
  1. 6 5
      apps/bigmember_pc/src/views/reportDownload/ZhiMaAnalysis.vue

+ 6 - 5
apps/bigmember_pc/src/views/reportDownload/ZhiMaAnalysis.vue

@@ -22,7 +22,8 @@ const showType = computed(() => {
   return 'default'
 })
 const iframeHeight = computed(() => {
-  return (contentRef.value?.offsetHeight || '600') + 'px'
+  return '800px'
+  // return (contentRef.value?.offsetHeight || '800') + 'px'
 })
 const downloadUrl = ref('')
 const reportMold = ref('')
@@ -64,11 +65,11 @@ onMounted(() => {
   } else {
     getReportDetail()
   }
-  window.addEventListener('scroll', throttle(watchScroll, 100))
+  // window.addEventListener('scroll', throttle(watchScroll, 100))
 })
 
 onUnmounted(() => {
-  window.removeEventListener('scroll', watchScroll)
+  // window.removeEventListener('scroll', watchScroll)
   // 组件卸载时清除定时器和请求
   clearInterval(apiTimer.value)
   apiTimer.value = null
@@ -292,7 +293,7 @@ function onLoadH5() {
     }
   }
   .report-content {
-    min-height: 600px;
+    min-height: 800px;
     margin: 32px auto;
     background: #e0e0e0;
     border-radius: 8px;
@@ -301,7 +302,7 @@ function onLoadH5() {
     }
   }
   .report-empty {
-    min-height: 600px;
+    min-height: 800px;
     background: #fff;
   }
 }