|
|
@ -267,7 +267,9 @@ class CompetitionCommon extends Component{
|
|
|
|
).then((response) => {
|
|
|
|
).then((response) => {
|
|
|
|
if (response.data.status === 0) {
|
|
|
|
if (response.data.status === 0) {
|
|
|
|
// this.props.history.replace();
|
|
|
|
// this.props.history.replace();
|
|
|
|
|
|
|
|
this.getbannerdata()
|
|
|
|
window.open(`/courses/${data.course_id}`);
|
|
|
|
window.open(`/courses/${data.course_id}`);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
@ -305,6 +307,7 @@ class CompetitionCommon extends Component{
|
|
|
|
if (response.data) {
|
|
|
|
if (response.data) {
|
|
|
|
this.props.showNotification(`报名成功,预祝您夺得桂冠!`);
|
|
|
|
this.props.showNotification(`报名成功,预祝您夺得桂冠!`);
|
|
|
|
// this.props.history.replace(urls);
|
|
|
|
// this.props.history.replace(urls);
|
|
|
|
|
|
|
|
this.getbannerdata()
|
|
|
|
window.open(urls)
|
|
|
|
window.open(urls)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|