From a6570da5d1228c8033b936bd7b0e30b8251210fa Mon Sep 17 00:00:00 2001 From: tongkunLiu <1049307356@qq.com> Date: Wed, 25 Mar 2020 09:31:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A9=20code:=20deleted=20a=20redundant?= =?UTF-8?q?=20line=20of=20code=20and=20changed=20a=20mistake=20(#6197)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ListTableList/components/UpdateForm.tsx | 3 +-- src/pages/ListTableList/index.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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();