issues25489
杨树林 6 years ago
parent fe1bd5db44
commit bb3711d8c4

@ -238,8 +238,6 @@ class CompetitionCommon extends Component{
if(url===undefined){
let {data,signupdata}=this.state;
if(signupdata.enrolled===true){
this.props.history.replace(`/courses/${data.course_id}`);
}else{
//课堂学生不需要在竞赛报名的
if (data.member_of_course === true) {
this.props.history.replace(`/courses/${data.course_id}`);
@ -256,6 +254,12 @@ class CompetitionCommon extends Component{
}
})
}
}else{
if (signupdata.personal === true) {
this.Personalregistration()
} else {
this.props.history.replace(`/competitions/${this.props.match.params.identifier}/enroll`);
}
}
}else{

Loading…
Cancel
Save