From bb584963c6abe77c5577cbcad3c9956b69444ae9 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期二, 01 七月 2025 17:17:30 +0800
Subject: [PATCH] 无人机样章

---
 src/books/toddlerGameImplementation/view/components/index.vue |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/books/toddlerGameImplementation/view/components/index.vue b/src/books/toddlerGameImplementation/view/components/index.vue
index c05b4f8..f63b78e 100644
--- a/src/books/toddlerGameImplementation/view/components/index.vue
+++ b/src/books/toddlerGameImplementation/view/components/index.vue
@@ -22,7 +22,8 @@
       <chapterSix v-if="showCatalogList.indexOf(7) > -1" :showPageList="loadPageList"
         :interfaceQuestion="questionDataMap">
       </chapterSix>
-      <chapterSeven v-if="showCatalogList.indexOf(8) > -1" :showPageList="loadPageList">
+      <chapterSeven v-if="showCatalogList.indexOf(8) > -1" :showPageList="loadPageList"
+        :interfaceQuestion="questionDataMap">
       </chapterSeven>
     </div>
   </div>
@@ -178,8 +179,9 @@
 
     // 娴嬭瘯椤甸潰璺宠浆
     setTimeout(() => {
-      this.gotoPage(6, 120);
+      this.gotoPage(4, 59);
     }, 500);
+
     // const pageDom = (this.container ? this.container : document)
     //   .querySelector("#app")
     //   .querySelectorAll(".page-box");
@@ -536,6 +538,7 @@
         }
       });
     },
+
     loadPageCallback(entries, observer) {
       entries.forEach(async (entry) => {
         if (entry.isIntersecting) {
@@ -553,11 +556,12 @@
               if (testData && testData[catalog]) {
                 if (testData[catalog][page]) {
                   if (Array.isArray(testData[catalog][page])) {
-                    this.questionDataMap[page] = await getQuestionList(
+                    Vue.set(this.questionDataMap, page, await getQuestionList(
                       page,
                       testData[catalog][page],
                       this.config.activeBook
-                    );
+                    ));
+                    console.log("棰樼洰", this.questionDataMap);
                   } else {
                     const obj = {};
                     for (let key in testData[catalog][page]) {
@@ -567,9 +571,8 @@
                         this.config.activeBook
                       );
                     }
-                    this.questionDataMap[page] = obj;
+                    Vue.set(this.questionDataMap, page, obj);
                   }
-                  console.log("棰樼洰", this.questionDataMap);
                 }
               }
             }

--
Gitblit v1.9.1