mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix: 重新请求数据动作数据是否追加参数&合并数据方式处理 (#9300)
This commit is contained in:
parent
de76135229
commit
78de1e7c21
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user