From b4eb53d0f04c39abb07885c153fd2164f60ff1ed Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期三, 23 十月 2024 14:52:37 +0800
Subject: [PATCH] bug修改

---
 src/books/civilAviation/view/components/index.vue |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/books/civilAviation/view/components/index.vue b/src/books/civilAviation/view/components/index.vue
index 2941d7f..c140f6c 100644
--- a/src/books/civilAviation/view/components/index.vue
+++ b/src/books/civilAviation/view/components/index.vue
@@ -1,10 +1,10 @@
 <template>
-  <div class="page-main"  @scroll="throttledScrollHandler">
+  <div class="page-main" @scroll="throttledScrollHandler">
     <div id="searchDomBox" style="display: none">
       <div id="searchContent"></div>
     </div>
     <div class="page-content" :style="{
-      fontSize: fontSize ? fontSize + 'px' : '16px',
+      fontSize: fontSize ? fontSize + 'px' : '18px',
       transform: `scale(${pageZoom ? pageZoom : 1})`,
       transformOrigin: 'center top',
     }">
@@ -46,6 +46,7 @@
   },
   computed: {
     fontSize() {
+      this.transformDom(this.$store.state.qiankun.fontSize)
       return this.$store.state.qiankun.fontSize;
     },
     pageZoom() {
@@ -94,6 +95,7 @@
     // 榛樿鍔犺浇绔犺妭
     this.showCatalogList = [1];
     // 婊氬姩鐩戝惉鑺傛祦
+    debugger
     this.throttledScrollHandler = _.throttle(
       this.scrollFun,
       this.throttleThreshold,
@@ -207,6 +209,9 @@
           currentScrollTop >=
           event.target.scrollHeight - this.loadThreshold
         ) {
+          console.log(1);
+
+          debugger
           // 鍒拌揪闃堝��
           if (
             this.showCatalogList[this.showCatalogList.length - 1] <
@@ -905,6 +910,13 @@
           playVudio.requestPictureInPicture();
         }
       }
+    },
+    //鍏朵粬绫诲悕涓嬪瓧浣撳ぇ灏忓彉鍖�
+    transformDom(fs) {
+      const blockElement = this.$refs.blockElement;  
+      if (blockElement) {
+        blockElement.style.fontSize = fs; // 鎴栬�呬綘鎯宠鐨勪换浣曞ぇ灏�  
+      }
     }
   },
   components: {

--
Gitblit v1.9.1