Commit 6fd621c4 authored by 米老朱's avatar 米老朱

Fix login form submit problem with no tab

parent 5f6b84ed
......@@ -127,9 +127,9 @@ class Login extends Component<LoginProps, LoginState> {
return (
<LoginContext.Provider value={this.getContext()}>
<div className={classNames(className, styles.login)}>
<Form onSubmit={this.handleSubmit}>
{tabs.length ? (
<React.Fragment>
<Form onSubmit={this.handleSubmit}>
<Tabs
animated={false}
className={styles.tabs}
......@@ -139,11 +139,11 @@ class Login extends Component<LoginProps, LoginState> {
{TabChildren}
</Tabs>
{otherChildren}
</Form>
</React.Fragment>
) : (
children
)}
</Form>
</div>
</LoginContext.Provider>
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment