import {
BrowserRouter,
HashRouter,
Link,
Redirect,
Route,
Switch,
withRouter
} from “react-router-dom”;
import { withRouter } from ‘dva/router’;
路由的根页面下this.props 会有
history
location
match
三个属性
但是不是根组件的的需要包一下,才会有。
@withRouter
export default withRouter(Classification)