use createFormActions instead of createSyncFormActions
This commit is contained in:
parent
f8e8b2b9c7
commit
f12c619603
@ -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 (
|
||||
|
@ -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 (
|
||||
<SchemaForm
|
||||
|
@ -15,7 +15,7 @@ import {
|
||||
import { QuestionCircleOutlined } from '@ant-design/icons';
|
||||
|
||||
export function Form(props: any) {
|
||||
const actions = createAsyncFormActions();
|
||||
const actions = createFormActions();
|
||||
|
||||
return (
|
||||
<Card bordered={false}>
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user