From b30cb90d112b52bde151a5e7a7b39c4d47ec9453 Mon Sep 17 00:00:00 2001
From: unknown <qq1940665526@163.com>
Date: 星期四, 13 六月 2024 19:56:21 +0800
Subject: [PATCH] 优化

---
 src/books/sportsAndHealth/view/components/index.vue |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/books/sportsAndHealth/view/components/index.vue b/src/books/sportsAndHealth/view/components/index.vue
index 846fd7f..1629e9a 100644
--- a/src/books/sportsAndHealth/view/components/index.vue
+++ b/src/books/sportsAndHealth/view/components/index.vue
@@ -155,17 +155,6 @@
     },
   },
   watch: {
-    swdtChange(data) {
-      if (this.$store.state.qiankun && this.$store.state.qiankun.chooseWords) {
-        this.$store.state.qiankun.chooseWords({
-          type: data.type,
-          data: data.data,
-        });
-      }
-    },
-    changeDomViewer() {
-      this.initViewer();
-    },
     showCatalogList: {
       handler(newVal, oldVal) {
         if (
@@ -291,6 +280,17 @@
     // }, 500);
   },
   methods: {
+    swdtChange(data) {
+      if (this.$store.state.qiankun && this.$store.state.qiankun.chooseWords) {
+        this.$store.state.qiankun.chooseWords({
+          type: data.type,
+          data: data.data,
+        });
+      }
+    },
+    changeDomViewer() {
+      this.initViewer();
+    },
     // setZoom1() {
     //   let scale = this.$store.state.qiankun.scale + 10;
     //   const scrollBox = (

--
Gitblit v1.9.1