fix: 重新请求数据动作数据是否追加参数&合并数据方式处理 (#9300)

This commit is contained in:
chengjinyang0 2024-01-04 10:50:44 +08:00 committed by GitHub
parent de76135229
commit 78de1e7c21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3101,12 +3101,12 @@ export const getEventControlConfig = (
if (
(config.data && typeof config.data === 'object') ||
(config.args &&
!Object.keys(config.args).length &&
Object.keys(config.args).length &&
config.data === undefined)
) {
config.__addParam = true;
config.__containerType = 'appoint';
config.dataMergeMode = 'override';
config.dataMergeMode = config.dataMergeMode || 'merge';
}
if (config.__addParam && config.data) {
@ -3119,7 +3119,7 @@ export const getEventControlConfig = (
}
} else if (
config.args &&
!Object.keys(config.args).length &&
Object.keys(config.args).length &&
config.data === undefined
) {
config.__reloadParams = objectToComboArray(config.args);