From d907f418739aa1517879a33f59c762d409cc1e8a Mon Sep 17 00:00:00 2001 From: zhangzhen <525765282@qq.com> Date: Fri, 24 Oct 2025 15:08:00 +0800 Subject: [PATCH] 处理方案切换报错问题; --- src/components/Common/SearchComponent/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Common/SearchComponent/index.js b/src/components/Common/SearchComponent/index.js index e557386..1c4b6c8 100644 --- a/src/components/Common/SearchComponent/index.js +++ b/src/components/Common/SearchComponent/index.js @@ -610,8 +610,9 @@ export default class SearchComponent extends Component { } const addState = await this.defaultSearchSolution({ ...searchSolution[iIndex] || {}, sCondition: JSON.stringify(filterCondition) }); - this.props.onSaveState({ ...addState }); - this.props.onGetData(slaveConfig, filterCondition, '', '', '', '', addState.sGroupByList,); + this.props.onSaveState({ ...addState }, () => { + this.props.onGetData(slaveConfig, filterCondition, '', '', '', '', addState.sGroupByList,); + }); /* 判断是否要加载过滤树数据 */ const filterTreeConfigArr = slaveConfig.gdsconfigformslave.filter(item => item.bTree); if (commonUtils.isNotEmptyArr(filterTreeConfigArr)) { -- libgit2 0.22.2