From 3ca15646419f9f36a12970ed86840a7fdc46fa0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Wed, 6 Nov 2019 13:38:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../competitions/Competitioncommon/CompetitionCommon.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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{