未登录点击写点什么没有反应

This commit is contained in:
caishi 2021-05-11 14:27:14 +08:00
parent 68d1b69a09
commit e38508ea59
2 changed files with 2 additions and 2 deletions

View File

@ -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: '/' });

View File

@ -14,7 +14,7 @@ export default (({ onSearch , current_user })=>{
<i className="iconfont icon-bianjishijuan3x" style={{marginRight:"5px"}}></i>写点什么
</Link>
:
<a className="greenbtn" to={"/login"} style={{width:"100%",marginTop:"20px"}}>
<a className="greenbtn" href={"/login"} style={{width:"100%",marginTop:"20px"}}>
<i className="iconfont icon-bianjishijuan3x" style={{marginRight:"5px"}}></i>写点什么
</a>
}