|
|
|
@ -16,19 +16,25 @@ class Notcompletedysl extends Component {
|
|
|
|
|
// console.log("Notcompletedysl");
|
|
|
|
|
// console.log("开发了402了");
|
|
|
|
|
|
|
|
|
|
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不加载的情况
|
|
|
|
|
if(this.props.modalsType!=undefined){
|
|
|
|
|
this.setState({
|
|
|
|
|
modalsType:this.props.modalsType
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
// 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不加载的情况
|
|
|
|
|
//
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|