import React from 'react'; import { Menu, Icon } from 'antd'; import '../leftTab.less'; const SubMenu = Menu.SubMenu; const MenuItemGroup = Menu.ItemGroup; const LeftTab = React.createClass({ getInitialState () { return { current: 'membership', }; }, handleClick (e) { this.props.handlekey(e.key); this.setState({ current: e.key, }); }, componentWillMount () { if (window.location.hash) { this.state.current = window.location.hash.substr(1); }; }, render () { return ( 会员服务订单 专家咨询订单 组织成果订单 个人成果订单 ); }, }); export default LeftTab;