From d11b7bf0ecbf1662ca96c127beda0581ecfd6853 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期六, 19 七月 2025 00:07:27 +0800 Subject: [PATCH] 7.19 --- src/books/toddlerGameImplementation/view/components/index.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/books/toddlerGameImplementation/view/components/index.vue b/src/books/toddlerGameImplementation/view/components/index.vue index 5db4645..e14fae3 100644 --- a/src/books/toddlerGameImplementation/view/components/index.vue +++ b/src/books/toddlerGameImplementation/view/components/index.vue @@ -179,8 +179,9 @@ // 娴嬭瘯椤甸潰璺宠浆 // setTimeout(() => { - // this.gotoPage(8, 182); + // this.gotoPage(4, 80); // }, 500); + // const pageDom = (this.container ? this.container : document) // .querySelector("#app") // .querySelectorAll(".page-box"); @@ -537,6 +538,7 @@ } }); }, + loadPageCallback(entries, observer) { entries.forEach(async (entry) => { if (entry.isIntersecting) { @@ -554,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]) { @@ -568,9 +571,8 @@ this.config.activeBook ); } - this.questionDataMap[page] = obj; + Vue.set(this.questionDataMap, page, obj); } - console.log("棰樼洰", this.questionDataMap); } } } -- Gitblit v1.9.1