add link to right menu

This commit is contained in:
liangping 2022-05-13 18:41:28 +08:00
parent b3d780f4ed
commit 540264a080
3 changed files with 19 additions and 5 deletions

View File

@ -17,11 +17,7 @@
</ul>
<!-- Left Col -->
<div class="bookmark-wrapper align-items-center flex-grow-1 d-none d-lg-flex">
<!-- Bookmarks Container -->
<bookmarks />
</div>
<div class="bookmark-wrapper align-items-center flex-grow-1 d-none d-lg-flex" />
<b-navbar-nav class="nav align-items-center ml-auto">
<dark-Toggler class="d-none d-lg-block" />

View File

@ -110,6 +110,7 @@
v-for="(item,k) in accounts"
:key="k"
:disabled="!item.address"
:to="`/${selected_chain.chain_name}/account/${item.address.addr}`"
@click="updateDefaultWallet(item.wallet)"
>
<div class="d-flex flex-column">

View File

@ -646,6 +646,23 @@ export default {
this.error = err
})
},
beforeRouteUpdate(to, from, next) {
// const { address } = this.$route.params
const { address } = to.params
if (address !== from.params.hash) {
this.address = address
this.$http.getAuthAccount(this.address).then(acc => {
this.account = acc
this.initial()
this.$http.getTxsBySender(this.address).then(res => {
this.transactions = res
})
}).catch(err => {
this.error = err
})
next()
}
},
mounted() {
const elem = document.getElementById('txevent')
elem.addEventListener('txcompleted', () => {