Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ddcat1115 committed Dec 18, 2017
1 parent dbcce2f commit 0014799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/Login/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ class Login extends Component {
},
};
}
onSwitch = (key) => {
onSwitch = (type) => {
this.setState({
type: key,
type,
});
this.props.onTabChange(key);
this.props.onTabChange(type);
}
handleSubmit = (e) => {
e.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion src/routes/User/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class LoginPage extends Component {
onTabChange={this.onTabChange}
onSubmit={this.handleSubmit}
>
<Tab key="account" tab="账号密码登录">
<Tab key="account" tab="账户密码登录">
{
login.status === 'error' &&
login.type === 'account' &&
Expand Down

0 comments on commit 0014799

Please sign in to comment.