路由跳转的两种方式

push

默认

<Link to={{pathname:'/home/message/detail',state:{id:msgObj.id,title:msgObj.title}}}>{msgObj.title }</Link>

replace

<Link replace={true} to={{pathname:'/home/message/detail',state:{id:msgObj.id,title:msgObj.title}}}>{msgObj.title }</Link>
上一篇:OpenStack kilo 扩展nova api方法


下一篇:2021-04-27