import React, { Component } from 'react'; import { connect } from 'react-redux'; import DocumentTitle from 'react-document-title'; import 'antd-mobile/dist/antd-mobile.less'; import styles from './index.less'; @connect(() => ({})) class Index extends Component { constructor(props) { super(props); this.state = { id: null, }; } componentWillMount = () => { const { id } = this.props.location.query; if (id) { this.setState({ id, }); } }; componentDidMount = () => {}; render() { const { id } = this.state; return (
{id ? ( ) : null}
); } } export default Index;