import * as React from 'react'; import UIComponents from './UI.Components'; import { withRouter, RouteChildrenProps } from 'react-router-dom'; /** Props接口 */ interface IProps extends RouteChildrenProps { onTabChange:(path)=>void } /** * 被核商品明细 */ class Product extends React.Component { constructor(props) { super(props); if(this.props.location.state){ this.props.onTabChange(this.props.location.pathname); } } render() { return ( ); } } export default withRouter(Product as any)