为了账号安全,请及时绑定邮箱和手机立即绑定

react f7怎么直接进入localhost:3007/about页面(而不是进入home页面)

react f7怎么直接进入localhost:3007/about页面(而不是进入home页面)

慕哥6287543 2019-03-21 22:19:36
老外很忙~没人回我http://forum.framework7.io/t/...跑这儿问一个:react f7怎么使浏览器地址栏url和当前route同步更新,我看了这个react的template,他的所有route在被访问的时候,地址栏url是不变的。谢谢老铁们As stated above, the route's path property means the path/url that will be displayed in browser window address bar (if pushState enabled) when the following route will be loaded either by api or clicking on a link with same path.<Button onClick={()=>{props.f7router.navigate('/memoDetail/', { pushState: true, history: true })}} ></Button>{path: '/course',pushState: true,history: true,component: CoursePage,}都不行,地址栏就是不变。。。
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 405 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号