dev_forum
杨树明 5 years ago
parent d4ea412a46
commit 38c2061d8b

@ -367,10 +367,7 @@ class LoginDialog extends Component {
description:response.data.message, description:response.data.message,
}); });
}else{ }else{
if(response.data.profile_completed !== null || response.data.profile_completed === false){
this.setMyEduCoderModals();
return;
}
broadcastChannelPostMessage('refreshPage') broadcastChannelPostMessage('refreshPage')
this.setState({ this.setState({

@ -340,10 +340,10 @@ class LoginRegisterComponent extends Component {
} }
if(response.data.profile_completed !== null || response.data.profile_completed === false){ // if(response.data.profile_completed !== null || response.data.profile_completed === false){
this.setMyEduCoderModals(); // this.setMyEduCoderModals();
return; // return;
} // }
if (response.status === 200) { if (response.status === 200) {
if (response.data.status === 402) { if (response.data.status === 402) {
@ -458,13 +458,13 @@ class LoginRegisterComponent extends Component {
return; return;
} }
}else { }else {
this.setState({ // this.setState({
logins: "", // logins: "",
dragOk: false, // dragOk: false,
codes: "", // codes: "",
passwords: "", // passwords: "",
Agreetotheterms: "", // Agreetotheterms: "",
}) // })
this.setMyEduCoderModals(); this.setMyEduCoderModals();
} }
} }

@ -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); this.setState({
if (response != undefined) modalsType:this.props.modalsType
if (response && response.data.status === 402) { })
this.setState({ }
modalsType: true
})
}
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不加载的情况
//
// });
} }

Loading…
Cancel
Save