dev_aliyun
杨树明 5 years ago
parent b8a587080f
commit 47f2bda924

@ -261,7 +261,7 @@ class NewHeader extends Component {
if(this.props.user&&this.props.user.login=== ""||this.props.user&&this.props.user===null||this.props.current_user&&this.props.current_user=== ""){
window.location.href = "/login";
}else if(this.state.current_user&&this.state.current_user.login=== ""||this.state.current_user&&this.state.current_user=== ""){
}else if(this.state.current_user=== ""){
window.location.href = "/login";
}else if(sum===1){
window.location.href = "/courses/new";

Loading…
Cancel
Save