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: '' }; }, 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() { let array = window.adminData.shiroList.split(","); return ( 数据统计 常用功能 常用联系人 ); }, }); export default LeftTab;