方式一: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>