| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import React, {Component} from 'react';
- import LoginInput from './LoginInput';
- import CloudConfig from "./CloudConfig";
- import AccountConfig from "./AccountConfig";
- import {Layout} from 'antd';
- const {Content} = Layout;
- class Login extends Component {
- constructor() {
- super();
- this.state = {
- userID: ''
- }
- }
- getUserId = (id) => {
- this.setState({
- userID: id
- })
- };
- render() {
- return (
- <Layout style={{padding: '24px', zIndex: '0'}}>
- <Content style={{padding: '24px', minHeight: 280, background: '#fff'}}>
- <div>
- {
- this.props.match.params.setting ?
- this.props.match.params.setting === 'account' ?
- <AccountConfig history={this.props.history}/>
- :
- <CloudConfig userID={this.state.userID} history={this.props.history}/>
- :
- <LoginInput history={this.props.history} getUserId={this.getUserId}/>
- }
- </div>
- </Content>
- </Layout>
- )
- }
- }
- export default Login;
|