调整登录

dev_aliyun
杨树明 6 years ago
parent 54fc554185
commit c9e2a2b895

@ -258,8 +258,8 @@ class NewHeader extends Component {
} }
NewCoursesAndShixuns=(sum)=>{ NewCoursesAndShixuns=(sum)=>{
debugger
if(this.state.current_user&&this.state.current_user.login=== ""||this.state.current_user&&this.state.current_user===null){ if(this.props.user&&this.props.user.login=== ""||this.props.user&&this.props.user===null){
window.location.href = "/login"; window.location.href = "/login";
}else{ }else{
if(sum===1){ if(sum===1){

Loading…
Cancel
Save