diff --git a/src/pages/ListTableList/components/UpdateForm.tsx b/src/pages/ListTableList/components/UpdateForm.tsx index 3e9830ca..17e71d9f 100644 --- a/src/pages/ListTableList/components/UpdateForm.tsx +++ b/src/pages/ListTableList/components/UpdateForm.tsx @@ -186,8 +186,7 @@ const UpdateForm: React.FC = (props) => { title="规则配置" visible={updateModalVisible} footer={renderFooter()} - onCancel={() => handleUpdateModalVisible(false, values)} - afterClose={() => handleUpdateModalVisible()} + onCancel={() => handleUpdateModalVisible()} > diff --git a/src/pages/ListTableList/index.tsx b/src/pages/ListTableList/index.tsx index f91e4969..2458cb69 100644 --- a/src/pages/ListTableList/index.tsx +++ b/src/pages/ListTableList/index.tsx @@ -216,7 +216,7 @@ const TableList: React.FC<{}> = () => { onSubmit={async (value) => { const success = await handleUpdate(value); if (success) { - handleModalVisible(false); + handleUpdateModalVisible(false); setStepFormValues({}); if (actionRef.current) { actionRef.current.reload();