diff --git a/client/containers/Login/Login.js b/client/containers/Login/Login.js index 05fd9be1..a1eaa0b2 100644 --- a/client/containers/Login/Login.js +++ b/client/containers/Login/Login.js @@ -1,16 +1,9 @@ -<<<<<<< HEAD -import React, { Component } from 'react' -import PropTypes from 'prop-types' -import { connect } from 'react-redux' -import { Button, Input, Icon, Checkbox } from 'antd' import './Login.scss' -======= -import './Login.scss'; -import React, { Component } from 'react'; -import { Form, Button, Input, Icon, Checkbox } from 'antd'; -import { BrowserRouter as Router, Route, Link } from 'react-router-dom'; +import React, { Component } from 'react' +import { connect } from 'react-redux' +import PropTypes from 'prop-types' +import { Form, Button, Input, Icon, Checkbox } from 'antd' const FormItem = Form.Item; ->>>>>>> 68828ebd3b3ac60015757711625048cef4b44165 @connect( () => ({ @@ -18,42 +11,13 @@ const FormItem = Form.Item; }) ) class Login extends Component { + static propTypes = { + form: PropTypes.object, + } + handleSubmit = (e) => { e.preventDefault(); const form = this.props.form; - -<<<<<<< HEAD - static propTypes = { - value: PropTypes.string, - per: PropTypes.string, - } - - render () { - return ( - - {this.props.value}{this.props.per} -
-
- } /> - - } /> - -
- 记住密码 - -
-
-
-
- ) -======= // 获取全部组件的值 // console.log(form.getFieldsValue()); form.validateFields((err, values) => { @@ -62,6 +26,7 @@ class Login extends Component { } }); } + render() { const { getFieldDecorator } = this.props.form; return ( @@ -91,7 +56,6 @@ class Login extends Component { ); ->>>>>>> 68828ebd3b3ac60015757711625048cef4b44165 } }