dev_hs
杨树林 6 years ago
parent 34e89a85f4
commit a6567b3a7d

@ -57,6 +57,18 @@ class CoursesBanner extends Component {
this.onloadupdatabanner()
on('updatabanner', this.updatabanner)
axios.interceptors.response.use((response) => {
if (response != undefined)
if (response && response.data.status === 410) {
this.setState({
yslJointhe:true,
})
}
return response;
}, (error) => {
});
}
componentWillUnmount() {
off('updatabanner', this.updatabanner)

@ -18,20 +18,7 @@ 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) => {
});
}

Loading…
Cancel
Save