因为使用了react-redux的connect 解决办法 import { withRouter } from 'react-router-dom' export default withRouter(connect(mapStateToProps)(Something)) https://reacttraining.com/rea...
因为使用了react-redux的connect
https://reacttraining.com/rea...