From 1c389a5a5c22c8d57ee79cc9ac8ed6db6c8dbadc Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期二, 04 六月 2024 18:01:59 +0800
Subject: [PATCH] 搜素优化

---
 src/books/childHealth/view/content/components/chapter003.vue |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/books/childHealth/view/content/components/chapter003.vue b/src/books/childHealth/view/content/components/chapter003.vue
index 5c64ef2..b71fd35 100644
--- a/src/books/childHealth/view/content/components/chapter003.vue
+++ b/src/books/childHealth/view/content/components/chapter003.vue
@@ -1950,6 +1950,10 @@
     },
     showPageList:{
       type:Array
+    },
+    isSearch:{
+      type:Boolean,
+      default:false
     }
   },
   data() {
@@ -2056,7 +2060,8 @@
     };
   },
   async mounted() {
-    const localData = localStorage.getItem("chapterThreeData");
+    if(!this.isSearch) {
+      const localData = localStorage.getItem("chapterThreeData");
     if (localData) {
       this.chapterThreeData = JSON.parse(localData);
     }
@@ -2067,6 +2072,8 @@
       }
     }, 1000);
     this.getVideoPath()
+    }
+
   },
   unmounted() {
     if (window.timerThree) {

--
Gitblit v1.9.1