diff --git a/src/renderers/Form/index.tsx b/src/renderers/Form/index.tsx index 862f3c53a..625c10d34 100644 --- a/src/renderers/Form/index.tsx +++ b/src/renderers/Form/index.tsx @@ -1683,10 +1683,14 @@ export class FormRenderer extends Form { super.componentWillUnmount(); } - doAction(action: Action, data: object, throwErrors: boolean) { - // 其它情况直接交给handleAction处理 - this.handleAction(undefined, action, data, throwErrors); + doAction( + action: Action, + data: object = this.props.store.data, + throwErrors: boolean = false + ) { + return this.handleAction(undefined, action, data, throwErrors); } + handleAction( e: React.UIEvent | undefined, action: Action,