返回 2 页 - React-Router - ReactJS -

JuM*_*Gar 5 reactjs react-router

我有一个组件,它可以返回上一页。我使用那个:this.props.history.goBack();但我想回到两个级别。我已经尝试了很多东西,this.props.history.goBack(-2);但我没有做到。我正在使用 ReactRouter v4。

我怎么能那样做?谢谢你。