From 2e664020f32a0eda87139bc1363fa34b7b5697ba Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期三, 15 五月 2024 23:11:51 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 src/books/childHealth/view/index.vue |   26 ++++++++++++++++++--------
 1 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/src/books/childHealth/view/index.vue b/src/books/childHealth/view/index.vue
index ec27130..0187f04 100644
--- a/src/books/childHealth/view/index.vue
+++ b/src/books/childHealth/view/index.vue
@@ -9,7 +9,7 @@
 export default {
   name: "child-health",
   components: {
-    pageContent,
+    pageContent
   },
   data() {
     return {
@@ -60,9 +60,9 @@
         }
       };
       this.MG.store.getProductDetail(query).then((res) => {
-        console.log("鍥句功淇℃伅",res.datas); 
-        this.$data.bookData =  res.datas
-        this.$store.commit('setRootCmsItemId',res.datas.rootCmsItemId)
+        console.log("鍥句功淇℃伅", res.datas);
+        this.$data.bookData = res.datas;
+        this.$store.commit("setRootCmsItemId", res.datas.rootCmsItemId);
       });
     },
     getParentWithClass(element, className) {
@@ -74,7 +74,9 @@
       }
     },
     handleMouseUp(e) {
-      const selection = (this.container ? this.container : window).getSelection();
+      const selection = (
+        this.container ? this.container : window
+      ).getSelection();
       const txt = selection.toString();
       if (selection.type != "none" && txt) {
         let node = selection.anchorNode.parentNode;
@@ -110,12 +112,20 @@
             y: e.y
           });
         }
+      } else {
+        if (this.$store.state.qiankun.windowSelection) {
+          this.$store.state.qiankun.windowSelection({
+            chapterNum: "",
+            txt: "",
+            page: "",
+            x: "",
+            y: ""
+          });
+        }
       }
     }
   }
 };
 </script>
 
-<style lang="less" scoped>
-
-</style>
+<style lang="less" scoped></style>

--
Gitblit v1.9.1