|
|
@ -57,6 +57,18 @@ class CoursesBanner extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
this.onloadupdatabanner()
|
|
|
|
this.onloadupdatabanner()
|
|
|
|
on('updatabanner', this.updatabanner)
|
|
|
|
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() {
|
|
|
|
componentWillUnmount() {
|
|
|
|
off('updatabanner', this.updatabanner)
|
|
|
|
off('updatabanner', this.updatabanner)
|
|
|
|