diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js index 65adc7e51..3585f5b81 100644 --- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js +++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommonChild/CompetitionContentspdfChild/CompetitionContentspdfpeopledata.js @@ -59,9 +59,9 @@ class CompetitionContentspdfpeopledata extends Component { let url = `/users/accounts/${this.props.current_user.login}.json`; axios.get(url).then((result) => { if (result.data) { - // if(result.data && result.data.base_info_completed == false){ - // this.props.history.push(`/account/profile/edit`); - // } + if (result.data && result.data.base_info_completed == false) { + this.props.history.push(`/account/profile/edit`); + } // "authentication": "uncertified", // "uncertified" | "applying" | "certified" this.setState({ basicInfo: Object.assign({}, {...result.data}, { @@ -231,13 +231,18 @@ class CompetitionContentspdfpeopledata extends Component { if (this.state.basicInfo.base_info_completed == true) { this.showRealNameCertificationModal(index) } else { - this.props.confirm({ - okText: `立即完善`, - content: `请先完善基本信息`, - onOk: () => { - this.props.history.push('/account/profile/edit') - } - }) + try { + this.props.confirm({ + okText: `立即完善`, + content: `请先完善基本信息`, + onOk: () => { + this.props.history.push('/account/profile/edit') + } + }) + } catch (e) { + this.props.history.push(`/account/profile/edit`); + + } } }