Commit 60a768de authored by ddcat1115's avatar ddcat1115

fix Login demo lint

parent 481787a7
...@@ -18,7 +18,7 @@ class LoginDemo extends React.Component { ...@@ -18,7 +18,7 @@ class LoginDemo extends React.Component {
autoLogin: true, autoLogin: true,
} }
onSubmit = (err, values) => { onSubmit = (err, values) => {
console.log(`value collected ->`, {...values, autoLogin: this.state.autoLogin}); console.log('value collected ->', { ...values, autoLogin: this.state.autoLogin });
if (this.state.type === 'tab1') { if (this.state.type === 'tab1') {
this.setState({ this.setState({
notice: '', notice: '',
...@@ -27,21 +27,21 @@ class LoginDemo extends React.Component { ...@@ -27,21 +27,21 @@ class LoginDemo extends React.Component {
setTimeout(() => { setTimeout(() => {
this.setState({ this.setState({
notice: '账号或密码错误!', notice: '账号或密码错误!',
}) });
}, 500); }, 500);
} }
}) });
} }
} }
onTabChange = (key) => { onTabChange = (key) => {
this.setState({ this.setState({
type: key, type: key,
}) });
} }
changeAutoLogin = (e) => { changeAutoLogin = (e) => {
this.setState({ this.setState({
autoLogin: e.target.checked, autoLogin: e.target.checked,
}) });
} }
render() { render() {
return ( return (
...@@ -75,7 +75,7 @@ class LoginDemo extends React.Component { ...@@ -75,7 +75,7 @@ class LoginDemo extends React.Component {
<a style={{ float: 'right' }} href="">注册账户</a> <a style={{ float: 'right' }} href="">注册账户</a>
</div> </div>
</Login> </Login>
) );
} }
} }
......
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