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

---
 src/books/childHealth/view/content/components/chapter010.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/books/childHealth/view/content/components/chapter010.vue b/src/books/childHealth/view/content/components/chapter010.vue
index b1385e8..15a32b6 100644
--- a/src/books/childHealth/view/content/components/chapter010.vue
+++ b/src/books/childHealth/view/content/components/chapter010.vue
@@ -344,7 +344,7 @@
           <p>鍏ㄦ棩鍒跺辜鍎垮洯鍚勯」鐢ㄦ埧浣跨敤闈㈢Н鍜屽缓绛戦潰绉姹傚弬瑙佽〃10-1銆�</p>
           <p class="img">
             琛�10-1 鍏ㄦ棩鍒跺辜鍎垮洯鍚勯」鐢ㄦ埧浣跨敤闈㈢Н鍜屽缓绛戦潰绉竴瑙堣〃<a id="w1"></a
-            ><a href="chapter010.html#m1"><sup>[1]</sup></a>
+            ><a href="javascript: void(0)" @click="gotoLabel('childTen-labelOne')" class="cu-pr"><sup>[1]</sup></a>
           </p>
           <p class="center openImgBox">
             <img src="../../../assets/images/chapterTen/0272-1.jpg" class="w100">
@@ -365,7 +365,7 @@
             妤兼搴旀寜鐓т繚闅滃畨鍏ㄣ�佷究浜庤璧板拰鐤忔暎鐨勫師鍒欐潵璁捐锛屾ゼ姊唴搴斿ぉ鐒堕噰鍏夈�傜枏鏁fゼ姊弗绂佷娇鐢ㄨ灪鏃嬪舰鎴栨墖褰㈣笍姝ャ�傛ゼ姊笍姝ラ潰搴旈噰鐢ㄩ槻婊戞潗鏂欙紝韪忔韪㈤潰涓嶅簲婕忕┖锛岃笍姝ラ潰搴�
           </p>
           <div class="annotation-border"></div>
-          <p class="note">
+          <p class="note" id="childTen-labelOne">
             <a id="m1"></a><a href="chapter010.html#w1">[1]</a>
             鎽樿嚜銆婂辜鍎垮洯寤鸿鏍囧噯銆嬶紙寤烘爣175鈥�2016锛夈��
           </p>
@@ -1488,6 +1488,9 @@
       this.$data.pathOne = await getResourcePath("3f507f73eb9d8c2af4dfcfb032ae696e");
       this.$data.pathTwo = await getResourcePath("93d4edcc8ef4f947ebfb0cee38ccaa71");
     },
+    gotoLabel(id) {
+      (this.container ? this.container : document).getElementById(id).scrollIntoView()
+    }
   },
 };
 </script>

--
Gitblit v1.9.1