From f497f734966504bd8a7e98bf602da582a53d91e5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 12 九月 2021 02:55:59 +0800
Subject: [PATCH] 2021-09-12

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

diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx
index acf6876..7b512f5 100644
--- a/src/tabviews/zshare/actionList/normalbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -1300,9 +1300,15 @@
       id = res.mk_b_id || res[btn.output] || ''
     }
 
-    if (btn.execSuccess !== 'never') {
+    if (btn.execSuccess === 'closetab') {
+      MKEmitter.emit('closeTabView', btn.$MenuID)
+    } else if (btn.execSuccess !== 'never') {
       MKEmitter.emit('refreshByButtonResult', btn.$menuId, btn.execSuccess, btn, id)
     }
+
+    if (btn.refreshTab && btn.refreshTab.length > 0) {
+      MKEmitter.emit('reloadMenuView', btn.refreshTab[btn.refreshTab.length - 1], 'table')
+    }
   }
 
   sendMessage = () => {

--
Gitblit v1.8.0