From b0c7a660750a8b29e7f8b3a648296d56c50fd2ca Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 29 十一月 2022 18:43:10 +0800 Subject: [PATCH] Merge branch 'develop' --- src/tabviews/formtab/index.jsx | 29 ++++++++--------------------- 1 files changed, 8 insertions(+), 21 deletions(-) diff --git a/src/tabviews/formtab/index.jsx b/src/tabviews/formtab/index.jsx index d5dab3d..98691d1 100644 --- a/src/tabviews/formtab/index.jsx +++ b/src/tabviews/formtab/index.jsx @@ -102,28 +102,15 @@ config.tabgroups = _tabgroups } - if (!window.GLOB.mkHS) { - config.action = config.action.filter(item => window.GLOB.mkActions[item.uuid]) - config.tabgroups.forEach(group => { - group.sublist = group.sublist.filter(tab => { - if (tab.supMenu === 'mainTable') { - tab.supMenu = MenuID - } - tab.ContainerId = this.state.ContainerId - return window.GLOB.mkActions[tab.linkTab] - }) + config.tabgroups.forEach(group => { + group.sublist = group.sublist.map(tab => { + if (tab.supMenu === 'mainTable') { + tab.supMenu = MenuID + } + tab.ContainerId = this.state.ContainerId + return tab }) - } else { - config.tabgroups.forEach(group => { - group.sublist = group.sublist.filter(tab => { - if (tab.supMenu === 'mainTable') { - tab.supMenu = MenuID - } - tab.ContainerId = this.state.ContainerId - return true - }) - }) - } + }) // 鎸夐挳绫诲瀷鍏煎 config.action = config.action.map(item => { -- Gitblit v1.8.0