diff --git a/packages/amis-editor/src/renderer/event-control/action-config-dialog.tsx b/packages/amis-editor/src/renderer/event-control/action-config-dialog.tsx index 6c3b27e20..7f6033950 100644 --- a/packages/amis-editor/src/renderer/event-control/action-config-dialog.tsx +++ b/packages/amis-editor/src/renderer/event-control/action-config-dialog.tsx @@ -134,7 +134,7 @@ export default class ActionDialog extends React.Component { __keywords: form.data.__keywords, __resultActionTree: form.data.__resultActionTree, componentId: form.data.componentId ? '' : undefined, - args: {}, + ...(form.data.args ? {args: {}} : {}), // 切换动作时清空args groupType, __actionDesc: actionNode?.description, __actionSchema: actionNode?.schema,