From fe02206b64c4997094fd8371f6b5d439c3f2688f Mon Sep 17 00:00:00 2001
From: unknown <qq1940665526@163.com>
Date: 星期四, 06 六月 2024 11:56:44 +0800
Subject: [PATCH] 优化

---
 src/books/sportsAndHealth/index.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/books/sportsAndHealth/index.vue b/src/books/sportsAndHealth/index.vue
index 375480f..5c4e9a4 100644
--- a/src/books/sportsAndHealth/index.vue
+++ b/src/books/sportsAndHealth/index.vue
@@ -17,22 +17,26 @@
         v-if="showCatalogList.indexOf(2) > -1"
         :showPageList="loadPageList"
         :questionData="questionData"
+        :isSearch="isSearch"
       />
       <ChapterTwo
         v-if="showCatalogList.indexOf(3) > -1"
         :showPageList="loadPageList"
         :questionData="questionData"
         @eventPublic="swdtChange"
+        :isSearch="isSearch"
       />
       <ChapterThree
         v-if="showCatalogList.indexOf(4) > -1"
         :showPageList="loadPageList"
         :questionData="questionData"
+        :isSearch="isSearch"
       />
       <ChapterFour
         v-if="showCatalogList.indexOf(5) > -1"
         :showPageList="loadPageList"
         :questionData="questionData"
+        :isSearch="isSearch"
       />
       <!-- <ChapterFive
         v-if="showCatalogList.indexOf(6) > -1"
@@ -133,7 +137,7 @@
 export default {
   data() {
     return {
-      catalogLength: 19, // 鎬荤珷鑺傛暟
+      catalogLength: 5, // 鎬荤珷鑺傛暟
       showCatalogList: [], // 鏄剧ず鐨勭珷鑺�
       loadThreshold: 300, // 瑙﹀彂鍔犺浇闃堝��
       throttleThreshold: 100, // 鑺傛祦闃堝��
@@ -144,6 +148,7 @@
       loadPageList: [],
       questionData: {},
       renderSignMap: {},
+      isSearch: false,
     };
   },
   computed: {
@@ -189,7 +194,7 @@
   },
   mounted() {
     // 榛樿鍔犺浇绔犺妭
-    this.showCatalogList = [5];
+    this.showCatalogList = [1];
     // 婊氬姩鐩戝惉鑺傛祦
     this.throttledScrollHandler = _.throttle(
       this.scrollFun,

--
Gitblit v1.9.1