From 56cdf07f8496685ba906ea75e7eb2faebb35371b Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期三, 06 十一月 2024 17:04:11 +0800
Subject: [PATCH] 加入富文本编辑器

---
 src/books/mathBook/view/components/index.vue |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/books/mathBook/view/components/index.vue b/src/books/mathBook/view/components/index.vue
index 417892c..d87298f 100644
--- a/src/books/mathBook/view/components/index.vue
+++ b/src/books/mathBook/view/components/index.vue
@@ -189,7 +189,7 @@
 
     // 娴嬭瘯椤甸潰璺宠浆
     // setTimeout(() => {
-    //   this.gotoPage(2,10);
+    //  this.gotoPage(2,22);
     //   //   setTimeout(() => {
     //   //     this.renderSign("Highlight", {
     //   //       id: "2ACA9359",
@@ -241,7 +241,6 @@
     // 婊氬姩鐩戝惉
     scrollFun(event) {
       this.handleVideoPicture();
-
       // 鍒ゆ柇鍚戜笂婊氬姩杩樻槸鍚戜笅婊氬姩
       if (event.target.scrollTop > this.previousScrollTop) {
         // 鍚戜笅
@@ -524,7 +523,6 @@
       });
     },
     getParentWithClass(element, className) {
-      console.log(element, className, "element, className");
       while (element.parentElement) {
         element = element.parentElement;
         if (element.classList.contains(className)) {
@@ -593,7 +591,6 @@
                     this.questionDataMap[page] = obj;
                   }
                 }
-                console.log(1, this.questionDataMap);
               }
             }
             // 娓叉煋杩欎竴椤电殑鏍囪
@@ -903,7 +900,7 @@
       ];
       if (this.questionId) {
         if (this.questionId[num] && this.questionId[num][page]) {
-          if (num != this.questionDataIndex) {
+          if (num != this.questionDataIndex || !this.questionList.length) {
             // 鍒ゆ柇褰撳墠绔犺妭鐨勯鐩甹son鏄惁宸茬粡璇锋眰杩�
             const res = await axios.get(
               this.config.activeBook.resourceUrl + "/question-" + num + ".json"
@@ -911,7 +908,6 @@
             if (!res.data) return [];
             this.questionList = res.data.data;
             this.questionDataIndex = res.data.chapterNum;
-            console.log("绔犺妭鍙�", num, res);
           }
           let ids = [];
           questionIndex

--
Gitblit v1.9.1