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/chapter002.vue |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/books/childHealth/view/content/components/chapter002.vue b/src/books/childHealth/view/content/components/chapter002.vue
index 3b41e7e..49a8582 100644
--- a/src/books/childHealth/view/content/components/chapter002.vue
+++ b/src/books/childHealth/view/content/components/chapter002.vue
@@ -1336,6 +1336,10 @@
     },
     showPageList:{
       type:Array
+    },
+    isSearch:{
+      type:Boolean,
+      default:false
     }
   },
   data() {
@@ -1426,7 +1430,8 @@
     };
   },
   async mounted() {
-    const localData = localStorage.getItem("chapterTwoData");
+    if(!this.isSearch) {
+      const localData = localStorage.getItem("chapterTwoData");
     if (localData) {
       this.chapterTwoData = JSON.parse(localData);
     }
@@ -1437,6 +1442,7 @@
       }
     }, 1000);
     this.getVideoPath();
+    }
   },
   unmounted() {
     if (window.timerTwo) {

--
Gitblit v1.9.1