Skip to content

Commit

Permalink
fix: click create ssl prestep not response (apache#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiran authored Aug 26, 2020
1 parent 292c118 commit f3592b3
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/pages/SSL/Create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,18 @@ const Page: React.FC = (props) => {
};

const handleStepChange = (nextStep: number) => {
if (nextStep === 2) {
onValidateForm();
}
if (nextStep === 3) {
submit();
switch (nextStep) {
case 1:
setStep(nextStep);
break;
case 2:
onValidateForm();
break;
case 3:
submit();
break;
default:
break;
}
};

Expand Down

0 comments on commit f3592b3

Please sign in to comment.