From c6f8e27d35cd31bb6393a1e7f747b6b2593dbd7a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 08 六月 2022 13:56:57 +0800 Subject: [PATCH] 2022-06-08 --- src/tabviews/zshare/actionList/normalbutton/index.jsx | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx index 69b040a..ed0bc66 100644 --- a/src/tabviews/zshare/actionList/normalbutton/index.jsx +++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx @@ -1554,9 +1554,9 @@ MKEmitter.emit('popclose') } else if (btn.execSuccess !== 'never') { MKEmitter.emit('refreshByButtonResult', btn.$menuId, btn.execSuccess, btn, id, this.state.selines) - } else { - btn.syncComponentId && MKEmitter.emit('reloadData', btn.syncComponentId) } + + btn.syncComponentId && MKEmitter.emit('reloadData', btn.syncComponentId) if (tabId) { MKEmitter.emit('reloadMenuView', tabId, 'table') @@ -1573,7 +1573,7 @@ node && node.scrollIntoView({behavior: 'smooth', block: 'center', inline: 'nearest'}) } - if (btn.openmenu && btn.openmenu.length > 0 && btn.MenuID) { + if (btn.MenuID && Array.isArray(btn.openmenu) && btn.openmenu.length > 0) { let newtab = { MenuID: btn.MenuID, MenuName: btn.MenuName, @@ -2026,7 +2026,7 @@ if (!btnconfig || !btnconfig.setting) return null - let title = btnconfig.setting.title + let title = btn.label let width = btnconfig.setting.width > 100 ? btnconfig.setting.width : btnconfig.setting.width + 'vw' let clickouter = btnconfig.setting.clickouter === 'close' -- Gitblit v1.8.0