change logout
This commit is contained in:
parent
939f577276
commit
ff8ad23d13
@ -477,9 +477,7 @@
|
||||
location.href = "/sinup";
|
||||
});
|
||||
$('#logout_btn').click(function(){
|
||||
window.chain.logout().then(() => {
|
||||
console.log('logout')
|
||||
})
|
||||
localStorage.removeItem('userinfo')
|
||||
})
|
||||
});
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
<div class="header-login">
|
||||
<span >WALLET CONNECT</span>
|
||||
<div class="dropdown-content">
|
||||
<a href="/rankinglist">Quest Info</a>
|
||||
<a href="javascript:void(0)" @click.stop="toQuest">Quest Info</a>
|
||||
<a href="javascript:void(0);" @click="logout">Log out</a>
|
||||
</div>
|
||||
</div>
|
||||
@ -26,6 +26,11 @@ export default {
|
||||
methods: {
|
||||
logout() {
|
||||
chain.logout();
|
||||
localStorage.removeItem('userinfo');
|
||||
location.href = '/desktop.html'
|
||||
},
|
||||
toQuest(e) {
|
||||
this.$router.push('rankinglist')
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user