Преглед изворни кода

💩 code: deleted a redundant line of code and changed a mistake (#6197)

tongkunLiu пре 5 година
родитељ
комит
a6570da5d1

+ 1 - 2
src/pages/ListTableList/components/UpdateForm.tsx

@@ -186,8 +186,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
       title="规则配置"
       visible={updateModalVisible}
       footer={renderFooter()}
-      onCancel={() => handleUpdateModalVisible(false, values)}
-      afterClose={() => handleUpdateModalVisible()}
+      onCancel={() => handleUpdateModalVisible()}
     >
       <Steps style={{ marginBottom: 28 }} size="small" current={currentStep}>
         <Step title="基本信息" />

+ 1 - 1
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();