diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js index 69b6a5d30..8f4e41887 100644 --- a/src/forge/Main/Detail.js +++ b/src/forge/Main/Detail.js @@ -519,7 +519,6 @@ class Detail extends Component { } textFunc = (forked_from_project_id, fork_info) => { - let type = fork_info && fork_info.fork_project_user_type; return forked_from_project_id && fork_info ?
复刻自 diff --git a/src/modules/loginRegister/LoginRegisterPage.jsx b/src/modules/loginRegister/LoginRegisterPage.jsx index 1a5a4e2c5..7350c41e4 100644 --- a/src/modules/loginRegister/LoginRegisterPage.jsx +++ b/src/modules/loginRegister/LoginRegisterPage.jsx @@ -14,14 +14,21 @@ function LoginRegisterPage(props){ return(
- {window.location.href='/'}}> - - + {window.location.href='/'}} /> + +
- {props.location.pathname === "/login" ? : props.location.pathname === "/register" ? : } - - + {props.location.pathname === "/login" ? + + : + props.location.pathname === "/register" ? + + : + + } + +