From cc7bbbd9b6a859235c9985cc09836effc1157fe8 Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期五, 07 六月 2024 10:51:38 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 src/books/childHealth/view/content/components/chapter005.vue |   20 ++++----------------
 1 files changed, 4 insertions(+), 16 deletions(-)

diff --git a/src/books/childHealth/view/content/components/chapter005.vue b/src/books/childHealth/view/content/components/chapter005.vue
index 1b8da2b..690fcda 100644
--- a/src/books/childHealth/view/content/components/chapter005.vue
+++ b/src/books/childHealth/view/content/components/chapter005.vue
@@ -2734,6 +2734,10 @@
     showPageList: {
       type: Array,
     },
+    isSearch: {
+      type: Boolean,
+      default: false,
+    },
   },
   data() {
     return {
@@ -2837,22 +2841,7 @@
     if (localData) {
       this.chapterFiveData = JSON.parse(localData);
     }
-    window.timerFive = setInterval(() => {
-      this.saveTime--;
-      if (this.saveTime == 0) {
-        this.saveChapterOneData();
-      }
-    }, 1000);
     this.getVideoPath();
-  },
-  unmounted() {
-    if (window.timerFive) {
-      clearInterval(window.timerFive);
-    }
-    localStorage.setItem(
-      "chapterFiveData",
-      JSON.stringify(this.chapterFiveData)
-    );
   },
   methods: {
     changeResources(type) {
@@ -2869,7 +2858,6 @@
       }
     },
     saveChapterOneData() {
-      this.saveTime = 20;
       localStorage.setItem(
         "chapterFiveData",
         JSON.stringify(this.chapterFiveData)

--
Gitblit v1.9.1