From b6e25a362139c4e13312924a0badcd80edf186f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Fri, 25 Oct 2019 18:00:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E8=B5=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/competition/Registration.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/competition/Registration.js b/public/react/src/modules/competition/Registration.js index d4cc80ca4..758feddb8 100644 --- a/public/react/src/modules/competition/Registration.js +++ b/public/react/src/modules/competition/Registration.js @@ -465,7 +465,7 @@ class Registration extends React.Component { Jointheteam = () => { if (this.props.user.is_teacher === true) { try { - if (this.props.teamutiple_limited === true) { + if (this.state.teamutiple_limited === true) { if (this.state.enrolled === true) { //已经报名 this.setState({ @@ -481,7 +481,7 @@ class Registration extends React.Component { } else { try { - if (this.props.mutiple_limited === true) { + if (this.state.mutiple_limited === true) { if (this.state.enrolled === true) { //已经报名 this.setState({ @@ -548,7 +548,7 @@ class Registration extends React.Component { if (this.props.user.is_teacher === true) { try { - if (this.props.teamutiple_limited === true) { + if (this.state.teamutiple_limited === true) { if (this.state.enrolled === true) { //已经报名 this.setState({ @@ -564,7 +564,7 @@ class Registration extends React.Component { } else { try { - if (this.props.mutiple_limited === true) { + if (this.state.mutiple_limited === true) { if (this.state.enrolled === true) { //已经报名 this.setState({