From 3c50bfdd8d605b3dd449adcb54cdf7f7c25d6c16 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 04 十一月 2022 15:46:05 +0800
Subject: [PATCH] 2022-11-04

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

diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx
index 6d007d5..b1d4898 100644
--- a/src/tabviews/zshare/actionList/normalbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -1904,15 +1904,22 @@
       node && node.scrollIntoView({behavior: 'smooth', block: 'center', inline: 'nearest'})
     }
 
-    if (btn.MenuID && Array.isArray(btn.openmenu) && btn.openmenu.length > 0) {
-      let newtab = {
-        MenuID: btn.MenuID,
-        MenuName: btn.MenuName,
-        MenuNo: btn.MenuNo,
-        type: btn.tabType,
-        param: {
-          $BID: id
+    if (btn.openmenu && Array.isArray(btn.openmenu) && btn.openmenu.length > 0) {
+      let menuId = btn.openmenu.slice(-1)[0]
+      let newtab = window.GLOB.mkThdMenus.filter(m => m.MenuID === menuId)[0]
+
+      if (!newtab && btn.MenuID) {
+        newtab = {
+          MenuID: btn.MenuID,
+          MenuName: btn.MenuName,
+          MenuNo: btn.MenuNo,
+          type: btn.tabType,
+          param: {
+            $BID: id
+          }
         }
+      } else if (!newtab) {
+        return
       }
 
       if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {

--
Gitblit v1.8.0