|
|
|
@ -253,22 +253,11 @@ class CoursesBanner extends Component {
|
|
|
|
|
this.modalCancel();
|
|
|
|
|
// window.location.href = "/courses/" + response.data.new_course_id;
|
|
|
|
|
|
|
|
|
|
}).catch(function (error) {
|
|
|
|
|
}).catch( (error)=> {
|
|
|
|
|
this.modalCancel();
|
|
|
|
|
console.log(252);
|
|
|
|
|
console.log(error);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
axios.interceptors.response.use((response) => {
|
|
|
|
|
if (response != undefined)
|
|
|
|
|
if (response && response.data.status === -1) {
|
|
|
|
|
this.modalCancel();
|
|
|
|
|
}
|
|
|
|
|
return response;
|
|
|
|
|
}, (error) => {
|
|
|
|
|
//TODO 这里如果样式变了会出现css不加载的情况
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(this.state.metype===6){
|
|
|
|
|