|
|
@ -16,19 +16,25 @@ class Notcompletedysl extends Component {
|
|
|
|
// console.log("Notcompletedysl");
|
|
|
|
// console.log("Notcompletedysl");
|
|
|
|
// console.log("开发了402了");
|
|
|
|
// console.log("开发了402了");
|
|
|
|
|
|
|
|
|
|
|
|
axios.interceptors.response.use((response) => {
|
|
|
|
if(this.props.modalsType!=undefined){
|
|
|
|
// console.log(response);
|
|
|
|
|
|
|
|
if (response != undefined)
|
|
|
|
|
|
|
|
if (response && response.data.status === 402) {
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
modalsType: true
|
|
|
|
modalsType:this.props.modalsType
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return response;
|
|
|
|
|
|
|
|
}, (error) => {
|
|
|
|
|
|
|
|
//TODO 这里如果样式变了会出现css不加载的情况
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
// axios.interceptors.response.use((response) => {
|
|
|
|
|
|
|
|
// // console.log(response);
|
|
|
|
|
|
|
|
// if (response != undefined)
|
|
|
|
|
|
|
|
// if (response && response.data.status === 402) {
|
|
|
|
|
|
|
|
// this.setState({
|
|
|
|
|
|
|
|
// modalsType: true
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// return response;
|
|
|
|
|
|
|
|
// }, (error) => {
|
|
|
|
|
|
|
|
// //TODO 这里如果样式变了会出现css不加载的情况
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|