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> { ...@@ -127,9 +127,9 @@ class Login extends Component<LoginProps, LoginState> {
return ( return (
<LoginContext.Provider value={this.getContext()}> <LoginContext.Provider value={this.getContext()}>
<div className={classNames(className, styles.login)}> <div className={classNames(className, styles.login)}>
{tabs.length ? ( <Form onSubmit={this.handleSubmit}>
<React.Fragment> {tabs.length ? (
<Form onSubmit={this.handleSubmit}> <React.Fragment>
<Tabs <Tabs
animated={false} animated={false}
className={styles.tabs} className={styles.tabs}
...@@ -139,11 +139,11 @@ class Login extends Component<LoginProps, LoginState> { ...@@ -139,11 +139,11 @@ class Login extends Component<LoginProps, LoginState> {
{TabChildren} {TabChildren}
</Tabs> </Tabs>
{otherChildren} {otherChildren}
</Form> </React.Fragment>
</React.Fragment> ) : (
) : ( children
children )}
)} </Form>
</div> </div>
</LoginContext.Provider> </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