使用antd,在遍历跳转的url时报错如图
import {withRouter} from 'react-router-dom'
...
...
export default withRouter(Index);
使用withRouter圆满解决
使用antd,在遍历跳转的url时报错如图
import {withRouter} from 'react-router-dom'
...
...
export default withRouter(Index);
使用withRouter圆满解决