forked from Gitlink/forgeplus-react
隐藏注册按钮
This commit is contained in:
parent
288832d0ea
commit
e9e9bc37a4
|
@ -27,7 +27,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 || 'admin'
|
||||
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || ''
|
||||
}
|
||||
function clearAllCookie() {
|
||||
cookie.remove('_educoder_session', { path: '/' });
|
||||
|
|
|
@ -755,10 +755,10 @@ class NewHeader extends Component {
|
|||
</span>
|
||||
: user.login === "" ?
|
||||
<span className="font-15">
|
||||
<a onClick={() => this.educoderlogin()} className="mr5 color-white">登录</a>
|
||||
{/* <a onClick={() => this.educoderlogin()} className="mr5 color-white">登录</a> <em className="vertical-line"></em>*/}
|
||||
{
|
||||
mygetHelmetapi2 && mygetHelmetapi2.new_course && mygetHelmetapi2.new_course.register_url &&
|
||||
<span><em className="vertical-line"></em><a className="color-white ml5" href={`${mygetHelmetapi2.new_course.register_url}`} target="_blank">注册</a></span>
|
||||
<span><a className="color-white ml5" href={`${mygetHelmetapi2.new_course.register_url}`} target="_blank">登录</a></span>
|
||||
}
|
||||
</span>
|
||||
:
|
||||
|
|
Loading…
Reference in New Issue