方法一:
<Link to='/home'>
<Link to='/home'>
<button>点击我去home页面</button>
</Link>
方法二:
this.props.history.push('/home')
<button onClick={this.clickDvaHandler}>点击我去home页面:history</button>
clickDvaHandler=()=>{
this.props.history.push('/home');
}
方法三:
Dva的dispatch对象上自带的routerReadux属性;
<button onClick={this.clickHandler}>点击我去home页面:routerRedux</button>
clickHandler=()=>{
this.props.dispatch(routerRedux.push('/home'));
}