修复仓库服务页面刷新跳转登录问题
This commit is contained in:
parent
5eb18b49c8
commit
feb7545725
|
|
@ -19,7 +19,8 @@ function Main(props){
|
|||
|
||||
useEffect(()=>{
|
||||
if(current_user && !current_user.login){
|
||||
props.history.push(`/login?go_page=/${owner}/${projectsId}/service`);
|
||||
// 未登录用户访问会跳转到代码库主页,此处不用处理
|
||||
// props.history.push(`/login?go_page=/${owner}/${projectsId}/service`);
|
||||
}else{
|
||||
setHas_trace_user(current_user.has_trace_user);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue