From 00147992da62048e7c0d91f8434d2ed28ab81dc6 Mon Sep 17 00:00:00 2001 From: ddcat1115 Date: Mon, 18 Dec 2017 15:10:05 +0800 Subject: [PATCH] update --- src/components/Login/index.js | 6 +++--- src/routes/User/Login.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Login/index.js b/src/components/Login/index.js index e55397b5b6..064448005d 100644 --- a/src/components/Login/index.js +++ b/src/components/Login/index.js @@ -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(); diff --git a/src/routes/User/Login.js b/src/routes/User/Login.js index 80ee666595..a348e5361f 100644 --- a/src/routes/User/Login.js +++ b/src/routes/User/Login.js @@ -55,7 +55,7 @@ export default class LoginPage extends Component { onTabChange={this.onTabChange} onSubmit={this.handleSubmit} > - + { login.status === 'error' && login.type === 'account' &&