diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.js b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.js index c350577d9..ec77f7e97 100755 --- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.js +++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.js @@ -238,7 +238,8 @@ 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}`); } else { @@ -254,12 +255,6 @@ class CompetitionCommon extends Component{ } }) } - }else{ - if (signupdata.personal === true) { - this.Personalregistration() - } else { - this.props.history.replace(`/competitions/${this.props.match.params.identifier}/enroll`); - } } }else{