1.JS跳转路由(需要拿到父组件的history)
clickHandle(){
let history = this.props.history;
history.push( '/home')
}
2.刷新页面(需要拿到父组件的history)
clickHandle(){
let history = this.props.history;
history.go(0)
}
3.返回页面
clickHandle(){
window.history.back( )
}
1.JS跳转路由(需要拿到父组件的history)
clickHandle(){
let history = this.props.history;
history.push( '/home')
}
2.刷新页面(需要拿到父组件的history)
clickHandle(){
let history = this.props.history;
history.go(0)
}
3.返回页面
clickHandle(){
window.history.back( )
}