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/custom/components/card/balcony/index.jsx | 25 ++++++------------------- 1 files changed, 6 insertions(+), 19 deletions(-) diff --git a/src/tabviews/custom/components/card/balcony/index.jsx b/src/tabviews/custom/components/card/balcony/index.jsx index eb8d22b..f5c1b1f 100644 --- a/src/tabviews/custom/components/card/balcony/index.jsx +++ b/src/tabviews/custom/components/card/balcony/index.jsx @@ -91,11 +91,8 @@ } return item }) - } else if (_config.wrap.linkType === 'sup') { - _config.wrap.supModule = _config.wrap.supModule.pop() - if (_config.wrap.supControl === 'hidden') { - show = false - } + } else if (_config.wrap.linkType === 'sup' && _config.wrap.supControl === 'hidden') { + show = false } this.setState({ @@ -229,20 +226,10 @@ this.loadData() } else { - let supModule = config.wrap.supModule - - btn.syncComponentId && MKEmitter.emit('reloadData', btn.syncComponentId) - - if (!btn.syncComponentId || btn.syncComponentId !== supModule) { - if (position === 'mainline' || position === 'popclose') { // 鍒锋柊婧愮粍浠舵椂锛岄檮甯﹀埛鏂颁笂绾ц涓庡綋鍓嶇粍浠� - if (supModule && BID) { - MKEmitter.emit('reloadData', supModule, BID) - } else { - this.loadData() - } - } else { - this.loadData() - } + if ((position === 'mainline' || position === 'popclose') && config.wrap.supModule && BID) { // 鍒锋柊婧愮粍浠舵椂锛岄檮甯﹀埛鏂颁笂绾ц涓庡綋鍓嶇粍浠� + MKEmitter.emit('reloadData', config.wrap.supModule, BID) + } else { + this.loadData() } if (position === 'popclose') { // 鏍囩鍏抽棴鍒锋柊 -- Gitblit v1.8.0