方式一:history在原窗口跳转

this.props.history.push("你的url后缀路径,不包含域名")
//比如
 this.props.history.push("/swagger/project/detail/"+projectId)

方式二:打开新的跳转窗口

let url = document.URL + "/detail/" + projectId;
window.open(url) //此处的url是全路径

方式三:使用<a>标签,原窗口跳转

<a href="你要跳转的URL,不包含域名">项目列表</a>

 

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2021-12-31
  • 2021-12-31
猜你喜欢
  • 2021-10-24
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-12-05
  • 2021-06-24
相关资源
相似解决方案