Commit 825425c5 authored by 陈帅's avatar 陈帅

fix login bug

parent f1277649
...@@ -3,14 +3,14 @@ import { connect } from 'dva'; ...@@ -3,14 +3,14 @@ import { connect } from 'dva';
import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale'; import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale';
import Link from 'umi/link'; import Link from 'umi/link';
import { Checkbox, Alert, Icon } from 'antd'; import { Checkbox, Alert, Icon } from 'antd';
import Login from './components/Login'; import LoginComponents from './components/Login';
import styles from './style.less'; import styles from './style.less';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
import { IStateType } from './model'; import { IStateType } from './model';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/lib/form';
import { CheckboxChangeEvent } from 'antd/lib/checkbox'; import { CheckboxChangeEvent } from 'antd/lib/checkbox';
const { Tab, UserName, Password, Mobile, Captcha, Submit } = Login; const { Tab, UserName, Password, Mobile, Captcha, Submit } = LoginComponents;
interface PAGE_NAME_UPPER_CAMEL_CASEProps { interface PAGE_NAME_UPPER_CAMEL_CASEProps {
dispatch: Dispatch<any>; dispatch: Dispatch<any>;
...@@ -107,7 +107,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< ...@@ -107,7 +107,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
const { type, autoLogin } = this.state; const { type, autoLogin } = this.state;
return ( return (
<div className={styles.main}> <div className={styles.main}>
<Login <LoginComponents
defaultActiveKey={type} defaultActiveKey={type}
onTabChange={this.onTabChange} onTabChange={this.onTabChange}
onSubmit={this.handleSubmit} onSubmit={this.handleSubmit}
...@@ -202,7 +202,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< ...@@ -202,7 +202,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
<FormattedMessage id="BLOCK_NAME.login.signup" /> <FormattedMessage id="BLOCK_NAME.login.signup" />
</Link> </Link>
</div> </div>
</Login> </LoginComponents>
</div> </div>
); );
} }
......
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