个人中心devops-立即激活跳转报错

This commit is contained in:
caishi 2021-11-30 09:48:35 +08:00
parent af8a5058b8
commit f4055e50e2
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ export default ((props)=>{
{/* 原本的两种合为一个 */}
<Route path="/:owner/:projectsId/devops"
render={
(p) =>{return( p.location.state.open_devops?<Dispose {...props} {...p}/>:<About {...props} {...p}/>)}
(p) =>{return( p.location && p.location.state && p.location.state.open_devops?<Dispose {...props} {...p}/>:<About {...props} {...p}/>)}
}
></Route>
</Switch>