|
|
|
@ -330,6 +330,24 @@ class NewHeader extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
educoderlogin=()=>{
|
|
|
|
|
//退出账号
|
|
|
|
|
this.setState({
|
|
|
|
|
isRender:true
|
|
|
|
|
})
|
|
|
|
|
// var url = `/accounts/logout.json`;
|
|
|
|
|
//
|
|
|
|
|
// axios.get((url)).then((result) => {
|
|
|
|
|
// if(result!==undefined){
|
|
|
|
|
// // this.setState({
|
|
|
|
|
// // isRender:true
|
|
|
|
|
// // })
|
|
|
|
|
// window.location.href = "/";
|
|
|
|
|
// }
|
|
|
|
|
// }).catch((error) => {
|
|
|
|
|
// console.log(error);
|
|
|
|
|
// })
|
|
|
|
|
}
|
|
|
|
|
educoderloginysl=()=>{
|
|
|
|
|
//退出账号
|
|
|
|
|
// this.setState({
|
|
|
|
|
// isRender:true
|
|
|
|
@ -337,17 +355,16 @@ class NewHeader extends Component {
|
|
|
|
|
var url = `/accounts/logout.json`;
|
|
|
|
|
|
|
|
|
|
axios.get((url)).then((result) => {
|
|
|
|
|
if(result!==undefined){
|
|
|
|
|
// this.setState({
|
|
|
|
|
// isRender:true
|
|
|
|
|
// })
|
|
|
|
|
window.location.href = "/";
|
|
|
|
|
}
|
|
|
|
|
if(result!==undefined){
|
|
|
|
|
// this.setState({
|
|
|
|
|
// isRender:true
|
|
|
|
|
// })
|
|
|
|
|
window.location.href = "/";
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onKeywordSearch = () => {
|
|
|
|
|
header_search(this)
|
|
|
|
|
}
|
|
|
|
@ -729,7 +746,7 @@ submittojoinclass=(value)=>{
|
|
|
|
|
<li className="bor-top-greyE">
|
|
|
|
|
{/*<a href={this.props.Headertop===undefined?"":this.props.Headertop.logout_url}>退出</a>*/}
|
|
|
|
|
{/*<a onClick={()=>this.educoderlogin()}>退出</a>*/}
|
|
|
|
|
<a onClick={()=>this.educoderlogin()}>退出</a>
|
|
|
|
|
<a onClick={()=>this.educoderloginysl()}>退出</a>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|