From b6cbfb08b51e87e6eac995be8e7751815715e6a1 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 29 三月 2022 15:36:21 +0800 Subject: [PATCH] 2022-03-29 --- src/tabviews/custom/components/form/normal-form/index.jsx | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/tabviews/custom/components/form/normal-form/index.jsx b/src/tabviews/custom/components/form/normal-form/index.jsx index 6c75291..566f00f 100644 --- a/src/tabviews/custom/components/form/normal-form/index.jsx +++ b/src/tabviews/custom/components/form/normal-form/index.jsx @@ -201,12 +201,12 @@ if (group.uuid !== menuId) return - if (btn.syncComponentId && btn.syncComponentId !== config.setting.supModule) { - MKEmitter.emit('reloadData', btn.syncComponentId) // 鍚岀骇鏍囩鍒锋柊 - } + btn.syncComponentId && MKEmitter.emit('reloadData', btn.syncComponentId) - if (config.wrap.datatype !== 'static' && config.setting) { - this.loadData() + if (!btn.syncComponentId || btn.syncComponentId !== config.setting.supModule) { + if (config.wrap.datatype !== 'static' && config.setting) { + this.loadData() + } } if (id) { @@ -218,7 +218,9 @@ resetParentParam = (MenuID, id) => { const { config } = this.state + if (config.wrap.datatype === 'static' || !config.setting.supModule || config.setting.supModule !== MenuID) return + if (id !== this.state.BID || id !== '') { this.setState({ BID: id }, () => { this.loadData() -- Gitblit v1.8.0