|
|
|
@ -203,7 +203,7 @@ class CoursesNew extends Component {
|
|
|
|
|
// debugger
|
|
|
|
|
if (response.data.status === 0) {
|
|
|
|
|
// this.goback()
|
|
|
|
|
this.props.history.push(first_category_url);
|
|
|
|
|
window.location.href=first_category_url;
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
@ -247,7 +247,7 @@ class CoursesNew extends Component {
|
|
|
|
|
).then((response) => {
|
|
|
|
|
if (response.status === 200) {
|
|
|
|
|
// this.goback
|
|
|
|
|
this.props.history.push(response.data.first_category_url);
|
|
|
|
|
window.location.href=response.data.first_category_url;
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|