From 982b4567d39cbb1185cc1e62c56dce4302428735 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期四, 13 二月 2025 10:56:20 +0800
Subject: [PATCH] 优化

---
 src/books/aurturingAndEducationAged0to3/view/components/chapter001.vue |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/src/books/aurturingAndEducationAged0to3/view/components/chapter001.vue b/src/books/aurturingAndEducationAged0to3/view/components/chapter001.vue
index 81294fe..9963c6b 100644
--- a/src/books/aurturingAndEducationAged0to3/view/components/chapter001.vue
+++ b/src/books/aurturingAndEducationAged0to3/view/components/chapter001.vue
@@ -687,7 +687,7 @@
                     <p><img class="rwmb-1" alt="" src="../../assets/images/tb-8.png" /><span class="zt-ht">瀛︿範鍙嶆��</span>
                     </p>
                     <textarea v-model="bookData.eight" placeholder="璇疯緭鍏ュ唴瀹�" rows="9" class="table-textarea"
-                        @change="setBookQuestion"></textarea>
+                        @change="setBookData"></textarea>
                 </div>
                 <ul class="fl al-fe jc-fe footer-right">
                     <li class="footerText">绗竴鍗曡繙</li>
@@ -697,7 +697,7 @@
             </div>
         </div>
         <!-- 18椤� -->
-        <div class="page-box" page="29">
+        <!-- <div class="page-box" page="29">
             <div v-if="showPageList.indexOf(29) > -1">
                 <div class="bodystyle">
 
@@ -707,9 +707,9 @@
                     <li class="footerText-left">0~3宀佸┐骞煎効鎶氳偛涓庢暀鑲�</li>
                 </ul>
             </div>
-        </div>
+        </div> -->
         <!-- 19椤� -->
-        <div class="page-box" page="30">
+        <!-- <div class="page-box" page="30">
             <div v-if="showPageList.indexOf(30) > -1">
                 <div class="bodystyle">
 
@@ -720,7 +720,7 @@
                     <li class="footerNumber">19</li>
                 </ul>
             </div>
-        </div>
+        </div> -->
     </div>
 </template>
 <script>
@@ -770,6 +770,11 @@
             this.questionData = JSON.parse(bookQuestion);
         }
 
+        const bookData = localStorage.getItem("aurturingAndEducation-book-chapter01-bookData");
+        if (bookData) {
+            this.bookData = JSON.parse(bookData);
+        }
+
 
         const videoData = localStorage.getItem("aurturingAndEducation-book-chapter01-Data");
         if (videoData) {
@@ -796,6 +801,12 @@
                 JSON.stringify(this.questionData)
             );
         },
+        setBookData(){
+            localStorage.setItem(
+                "aurturingAndEducation-book-chapter01-bookData",
+                JSON.stringify(this.bookData)
+            );
+        },
         changeQuestionData() {
             localStorage.removeItem("aurturingAndEducation-book-chapter01-questionData")
             for (let key in this.questionData) {

--
Gitblit v1.9.1