dev_forum
ysl 6 years ago
parent 439d63ab46
commit adfdb8e357

@ -330,14 +330,15 @@ class NewHeader extends Component {
}) })
} }
educoderlogin=()=>{ educoderlogin=()=>{
//出账号 //退出账号
var url = `/accounts/logout.json`; var url = `/accounts/logout.json`;
axios.get((url)).then((result) => { axios.get((url)).then((result) => {
if(result!==undefined){ if(result!==undefined){
this.setState({ // this.setState({
isRender:true // isRender:true
}) // })
window.location.href = "/";
} }
}).catch((error) => { }).catch((error) => {
console.log(error); console.log(error);

Loading…
Cancel
Save