Skip to content

Commit

Permalink
fix: 位置
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyair committed Aug 27, 2020
1 parent 09c1f27 commit 0164a5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/yforms/src/YForm/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ const InternalForm = React.memo<YFormProps>((thisProps) => {

const handleReset: (p: { type: CancelType }) => void = useCallback(
async ({ type }) => {
await loadData({ isInit: false });
if (typeof onCancel === 'function') {
onCancel({ type });
} else {
Expand All @@ -221,7 +220,7 @@ const InternalForm = React.memo<YFormProps>((thisProps) => {
}
}
},
[create, edit, handleOnDisabled, loadData, onCancel, resetFields, view],
[create, edit, handleOnDisabled, onCancel, resetFields, view],
);
const itemsTypeAll = { ...baseItemsType, ...globalConfig.itemsType, ...itemsType };

Expand Down Expand Up @@ -252,6 +251,7 @@ const InternalForm = React.memo<YFormProps>((thisProps) => {
setSubmitLoading(true);
try {
await onFinish(form.getFormatFieldsValue(value));
await loadData({ isInit: false });
const end = new Date().getTime();
timeOut.current = window.setTimeout(
() => {
Expand Down

0 comments on commit 0164a5c

Please sign in to comment.