From b1725ffebe2166c2997d4943046307e5f87eaeb9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 03 九月 2021 11:13:35 +0800 Subject: [PATCH] 2021-09-03 --- src/views/pcdesign/index.jsx | 23 ++++------------------- 1 files changed, 4 insertions(+), 19 deletions(-) diff --git a/src/views/pcdesign/index.jsx b/src/views/pcdesign/index.jsx index 463841e..e03ebc8 100644 --- a/src/views/pcdesign/index.jsx +++ b/src/views/pcdesign/index.jsx @@ -903,6 +903,10 @@ nodes.children = trees nodes.popviews = popviews + if (config.components.findIndex(item => item.type === 'login') > -1) { + nodes.login = true + } + return nodes } @@ -924,23 +928,6 @@ }) } } - } - - filterConfig = (components) => { - return components.map(item => { - if (item.type === 'tabs') { - item.subtabs.forEach(tab => { - tab.components = this.filterConfig(tab.components) - }) - } else if (item.type === 'group') { - item.components = this.filterConfig(item.components) - } else if (item.type === 'table' && item.subtype === 'normaltable') { - item.search = item.search.filter(a => !a.origin) - item.action = item.action.filter(a => !a.origin) - item.cols = item.cols.filter(a => !a.origin) - } - return item - }) } submitConfig = () => { @@ -966,8 +953,6 @@ }) setTimeout(() => { - config.components = this.filterConfig(config.components) - if (config.enabled && this.verifyConfig()) { config.enabled = false } -- Gitblit v1.8.0