From cd020265aba69c3e4294f81d842372a82bac008f Mon Sep 17 00:00:00 2001
From: unknown <qq1940665526@163.com>
Date: 星期一, 03 六月 2024 11:58:57 +0800
Subject: [PATCH] 优化

---
 src/books/lifeCare/view/chapter005.vue |    4 ++--
 src/books/lifeCare/index.vue           |    7 +++++++
 src/books/lifeCare/view/chapter007.vue |    1 +
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/books/lifeCare/index.vue b/src/books/lifeCare/index.vue
index 6a87bdc..465e099 100644
--- a/src/books/lifeCare/index.vue
+++ b/src/books/lifeCare/index.vue
@@ -37,6 +37,7 @@
         v-if="showCatalogList.indexOf(6) > -1"
         :showPageList="loadPageList"
         :questionData="questionData"
+        @Upload_initViewer="changeDomViewer"
       />
       <chapterSix
         v-if="showCatalogList.indexOf(7) > -1"
@@ -48,6 +49,7 @@
         :showPageList="loadPageList"
         :questionData="questionData"
         @eventSwdt="swdtChange"
+        @Upload_initViewer="changeDomViewer"
       />
       <chapterEight
         v-if="showCatalogList.indexOf(9) > -1"
@@ -251,6 +253,11 @@
     // }, 1000);
   },
   methods: {
+    changeDomViewer(){
+      setTimeout(() => {
+        this.initViewer()
+      }, 500);
+    },
     // 婊氬姩鐩戝惉
     scrollFun(event) {
       // 鍒ゆ柇鍚戜笂婊氬姩杩樻槸鍚戜笅婊氬姩
diff --git a/src/books/lifeCare/view/chapter005.vue b/src/books/lifeCare/view/chapter005.vue
index 69e4c2b..a45edb5 100644
--- a/src/books/lifeCare/view/chapter005.vue
+++ b/src/books/lifeCare/view/chapter005.vue
@@ -3749,8 +3749,8 @@
             if (type == "3") {
               that.chapter005.pictrueListThree.push(getPublicImage(e));
             }
-            that.isLoding = false;
-            localStorage.setItem("chapter005", JSON.stringify(this.chapter005));
+            that.$emit('Upload_initViewer',"")
+            localStorage.setItem("chapter005", JSON.stringify(that.chapter005));
           }, 1000);
         })
         .catch((e) => {
diff --git a/src/books/lifeCare/view/chapter007.vue b/src/books/lifeCare/view/chapter007.vue
index 876e2ba..8ba05c9 100644
--- a/src/books/lifeCare/view/chapter007.vue
+++ b/src/books/lifeCare/view/chapter007.vue
@@ -2991,6 +2991,7 @@
               that.chapter007.pictrueListFour.push(getPublicImage(e));
             }
             that.isLoding = false;
+            this.$emit('Upload_initViewer',"")
             localStorage.setItem("chapter007", JSON.stringify(this.chapter007));
           }, 1000);
         })

--
Gitblit v1.9.1