|
|
|
@ -18,20 +18,23 @@ class Certifiedprofessional extends Component {
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
// console.log("加入金品课堂");
|
|
|
|
|
// console.log(this.props);
|
|
|
|
|
axios.interceptors.response.use((response) => {
|
|
|
|
|
if (response != undefined)
|
|
|
|
|
if (response && response.data.status === 410) {
|
|
|
|
|
try {
|
|
|
|
|
this.props.ModalshowCancelsy();
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return response;
|
|
|
|
|
}, (error) => {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
// axios.interceptors.response.use((response) => {
|
|
|
|
|
// if (response != undefined)
|
|
|
|
|
// if (response && response.data.status === -1) {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// return response;
|
|
|
|
|
// }, (error) => {
|
|
|
|
|
// //TODO 这里如果样式变了会出现css不加载的情况
|
|
|
|
|
//
|
|
|
|
|
// });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
modalCancel=()=>{
|
|
|
|
|
this.props.ModalCancelsy();
|
|
|
|
|
};
|
|
|
|
|