From 891e8aaad3b2ce6980fd44d1cf49192dca1c3c66 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 23 十一月 2022 14:30:30 +0800
Subject: [PATCH] 2022-11-23

---
 src/tabviews/zshare/actionList/tabbutton/index.jsx |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/tabviews/zshare/actionList/tabbutton/index.jsx b/src/tabviews/zshare/actionList/tabbutton/index.jsx
index 8809c85..c4b2567 100644
--- a/src/tabviews/zshare/actionList/tabbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/tabbutton/index.jsx
@@ -158,7 +158,7 @@
       let menuId = btn.linkmenu.slice(-1)[0]
       let menu = window.GLOB.mkThdMenus.filter(m => m.MenuID === menuId)[0]
 
-      if (!menu && btn.MenuName && btn.tabType) {
+      if (!menu && btn.MenuName && btn.MenuID) {
         menu = {
           MenuID: btn.MenuID,
           MenuName: btn.MenuName,
@@ -184,11 +184,7 @@
       }
     }
 
-    if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {
-      MKEmitter.emit('modifyTabs', newtab, 'replace')
-    } else {
-      MKEmitter.emit('modifyTabs', newtab, 'plus', true)
-    }
+    MKEmitter.emit('modifyTabs', newtab, true)
 
     MKEmitter.emit('openNewTab')
     if (window.GLOB.systemType === 'production') {

--
Gitblit v1.8.0