From 23ebc0d9ee7d4b06916478f84b411d0406f11a3a Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 05 六月 2024 18:49:07 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout --- src/books/childHealth/view/content/components/chapter007.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/books/childHealth/view/content/components/chapter007.vue b/src/books/childHealth/view/content/components/chapter007.vue index 3d97cd9..7284f1d 100644 --- a/src/books/childHealth/view/content/components/chapter007.vue +++ b/src/books/childHealth/view/content/components/chapter007.vue @@ -3616,6 +3616,10 @@ showPageList: { type: Array, }, + isSearch: { + type: Boolean, + default: false, + }, }, data() { return { @@ -3745,7 +3749,8 @@ }; }, async mounted() { - const localData = localStorage.getItem("chapterSevenData"); + if(!this.isSearch) { + const localData = localStorage.getItem("chapterSevenData"); if (localData) { this.chapterSevenData = JSON.parse(localData); } @@ -3756,6 +3761,7 @@ } }, 1000); this.getVideoPath() + } }, unmounted() { if (window.timerSeven) { -- Gitblit v1.9.1