代码优化

This commit is contained in:
谢思 2021-11-08 16:44:38 +08:00
parent 66e1235c3b
commit 990cfe2781
2 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,7 @@ if (isDev) {
}
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
window.location.search.indexOf('debug=s') !== -1 ? 'student' :
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || ''
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'admin'
}
window._debugType = debugType;
export function initAxiosInterceptors(props) {

View File

@ -465,7 +465,6 @@ class NewHeader extends Component {
{!user || (user && !user.login) ?
<span className="font-15 ml30">
<a onClick={() => this.educoderlogin()} className="mr5 color-grey-6">登录</a>
{/* <Link to={`/login`} className="mr5 color-grey-6">登录</Link> */}
{
settings && settings.common && settings.common.register &&
<span><em className="vertical-line"></em><Link className="ml5 color-grey-6" to={`/register`}></Link></span>