import React, {Component} from 'react'; import {Layout, Menu} from 'antd'; import {getIdUrl} from '../../config' import WxConfig from "./wxConfig/WxConfig"; import WxDeploy from "../common/deploy/Deploy"; import WxResult from './wxResult/WxResult'; import axios from 'axios'; import {FormattedMessage} from 'react-intl'; axios.defaults.withCredentials = true; const {Content} = Layout; class WxUserCreate extends Component { constructor() { super(); this.state = { menuLevel3: "wechat-config", userID: '', getIdUrl } } componentWillMount() { let _this = this; axios.get(this.state.getIdUrl) .then((res) => { if (res.data !== '') { _this.setState({ userID: res.data }) } }) .catch(function (err) { console.log(err); }); } switchMenu = (menuName, e) => { this.setState({ [menuName]: e.key, }); }; render() { let configID = this.props.history.location.state ? this.props.history.location.state.configID : "ecommerce_wxConfigID"; let appName = this.props.history.location.state ? this.props.history.location.state.appName : "ecommerce"; return (