钱包切换帐号后, 退至首页
This commit is contained in:
parent
713a034cac
commit
1267ed0a49
File diff suppressed because one or more lines are too long
@ -11,7 +11,6 @@
|
|||||||
<a href="javascript:void(0);" @click="logout">Log out</a>
|
<a href="javascript:void(0);" @click="logout">Log out</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -25,9 +24,17 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
if (!this.$store.state.account && location.pathname.indexOf('login') == -1 ) {
|
||||||
|
location.href = '/desktop.html'
|
||||||
|
}
|
||||||
chain.chainManager.init().then(() => {
|
chain.chainManager.init().then(() => {
|
||||||
console.log("header wallet init");
|
console.log("header wallet init");
|
||||||
});
|
});
|
||||||
|
window.addEventListener('account_change', function() {
|
||||||
|
localStorage.removeItem('userinfo');
|
||||||
|
localStorage.removeItem('invite_code');
|
||||||
|
console.log('received account change')
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
header(){
|
header(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user