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

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

Loading…
Cancel
Save