dev_local_2
杨树林 5 years ago
parent 584e238af6
commit 199f1b9294

@ -328,8 +328,7 @@ class CoursesNew extends Component {
}
goback = (id) => {
// if(this.props.match.params.coursesId===undefined){
// if(this.props.match.params.coursesId===undefined){
// this.props.history.push("/courses");
// }else{
// this.props.history.push(this.props.current_user.first_category_url);
@ -340,13 +339,13 @@ class CoursesNew extends Component {
// }else{
try {
if(this.props.current_user.first_category_url===undefined){
this.props.history.push(this.props.current_user.first_category_url);
this.props.history.push('/')
}else {
this.props.history.goBack()
this.props.history.push(this.props.current_user.first_category_url);
}
}catch (e) {
this.props.history.goBack()
this.props.history.push('/')
}
// }

Loading…
Cancel
Save