1 个回答

因为使用了react-redux的connect

解决办法
import { withRouter } from 'react-router-dom'
export default withRouter(connect(mapStateToProps)(Something))

https://reacttraining.com/rea...

宣传栏