react-router怎么知道前一个路由是什么

2025-03-18 20:58:58
推荐回答(1个)
回答1:

根据history提供的函数即可

this.props.history.go(-1)