From 11745b05b3ecdd3a3dc6f64793dc83a095de2b09 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 12 五月 2022 10:19:52 +0800
Subject: [PATCH] 2022-05-12

---
 src/tabviews/zshare/actionList/normalbutton/index.jsx |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx
index 7b3b4dc..3eff1c7 100644
--- a/src/tabviews/zshare/actionList/normalbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -1556,6 +1556,11 @@
       let node = document.getElementById('tab' + id)
       node && node.click()
     }
+    if (btn.anchors && btn.anchors.length > 0) {
+      let id = btn.anchors[btn.anchors.length - 1]
+      let node = document.getElementById('anchor' + id)
+      node && node.scrollIntoView({behavior: 'smooth', block: 'center', inline: 'nearest'})
+    }
 
     if (btn.openmenu && btn.openmenu.length > 0 && btn.MenuID) {
       let newtab = {

--
Gitblit v1.8.0