mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
fix:去掉多余动作配置
Change-Id: I03ed751a140e28a7e56c58a58284faf9c1e0fc9c
This commit is contained in:
parent
921be3b845
commit
f90cfb2689
@ -1102,7 +1102,7 @@ export const getEventControlConfig = (
|
||||
};
|
||||
},
|
||||
actionConfigSubmitFormatter: (config: ActionConfig) => {
|
||||
let action = {...config};
|
||||
let action: ActionConfig = {...config, groupType: undefined};
|
||||
action.__title = findActionNode(
|
||||
actionTree,
|
||||
config.actionType
|
||||
@ -1175,6 +1175,12 @@ export const getEventControlConfig = (
|
||||
}
|
||||
|
||||
delete action.config;
|
||||
|
||||
// 去掉空参
|
||||
if (action.args && !Object.keys(action.args).length) {
|
||||
delete action.args;
|
||||
}
|
||||
|
||||
return action;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user