fix:去掉多余动作配置

Change-Id: I03ed751a140e28a7e56c58a58284faf9c1e0fc9c
This commit is contained in:
hsm-lv 2022-07-14 11:28:46 +08:00
parent 921be3b845
commit f90cfb2689

View File

@ -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;
}
};