import React, {Component} from 'react'; import {Layout, Menu} from 'antd'; import WxConfig from "./wxConfig/WxConfig"; import WxDeploy from "../common/deploy/Deploy"; import WxResult from './wxResult/WxResult'; import {FormattedMessage} from 'react-intl'; const {Content} = Layout; class WxTrialCase extends Component { constructor() { super(); this.state = { menuLevel3: "wechat-config", userID: 'ioobot' } } 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 (
this.switchMenu('menuLevel3', e)} selectedKeys={[this.state.menuLevel3]} > {(() => { switch (this.state.menuLevel3) { case 'wechat-config': return ; case 'wechat-deploy': return ; case 'wechat-result': return ; default: return } })()}
) } } export default WxTrialCase;