import React from 'react'; import { Tabs } from 'antd'; import router from 'umi/router'; import Operation from './components/operation'; import Business from './components/business'; import styles from './index.less'; const { TabPane } = Tabs; const index = props => { // console.log(props); /** * 切换tab页签 * @param {*} key */ function onChangeTab(key) { router.push(key); } const { location: { hash }, } = props; return (