diff --git a/packages/app/src/components/views/Form/DrawerForm.tsx b/packages/app/src/components/views/Form/DrawerForm.tsx index a7065834a..1b207f0b7 100644 --- a/packages/app/src/components/views/Form/DrawerForm.tsx +++ b/packages/app/src/components/views/Form/DrawerForm.tsx @@ -46,7 +46,7 @@ export const DrawerForm = forwardRef((props: any, ref) => { setVisible, getData: run, })); - const actions = createAsyncFormActions(); + const actions = createFormActions(); const { title, fields: properties ={} } = props.schema||{}; console.log({onFinish}); return ( diff --git a/packages/app/src/components/views/Form/FilterForm.tsx b/packages/app/src/components/views/Form/FilterForm.tsx index d43168b29..1588e14a6 100644 --- a/packages/app/src/components/views/Form/FilterForm.tsx +++ b/packages/app/src/components/views/Form/FilterForm.tsx @@ -15,7 +15,7 @@ import { import { QuestionCircleOutlined } from '@ant-design/icons'; export function FilterForm(props: any) { - const actions = createAsyncFormActions(); + const actions = createFormActions(); const { title, fields: properties ={} } = props.schema||{}; return ( diff --git a/packages/app/src/components/views/Form/Login.tsx b/packages/app/src/components/views/Form/Login.tsx index 6464ea898..499b67528 100644 --- a/packages/app/src/components/views/Form/Login.tsx +++ b/packages/app/src/components/views/Form/Login.tsx @@ -16,7 +16,7 @@ import { QuestionCircleOutlined } from '@ant-design/icons'; import { Link, history, request, useModel, useLocation } from 'umi'; export function Login(props: any) { - const actions = createAsyncFormActions(); + const actions = createFormActions(); const { initialState = {}, loading, error, refresh, setInitialState } = useModel('@@initialState'); const { redirect } = props.location.query;