improve breadcrumb
This commit is contained in:
parent
f286fb1230
commit
566fae5916
@ -24,6 +24,12 @@
|
||||
class="align-text-top"
|
||||
/>
|
||||
</b-breadcrumb-item>
|
||||
<b-breadcrumb-item
|
||||
:to="`/${chainname}`"
|
||||
class="text-uppercase"
|
||||
>
|
||||
{{ chainname }}
|
||||
</b-breadcrumb-item>
|
||||
<b-breadcrumb-item
|
||||
v-for="item in $route.meta.breadcrumb"
|
||||
:key="item.text"
|
||||
@ -65,5 +71,10 @@ export default {
|
||||
BRow,
|
||||
BCol,
|
||||
},
|
||||
computed: {
|
||||
chainname() {
|
||||
return this.$store?.state?.chains?.selected?.chain_name
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
@ -124,10 +124,10 @@ const router = new VueRouter({
|
||||
alias: '/:chain',
|
||||
component: () => import('@/views/Dashboard.vue'),
|
||||
meta: {
|
||||
pageTitle: 'Home',
|
||||
pageTitle: 'Dashboard',
|
||||
breadcrumb: [
|
||||
{
|
||||
text: 'Home',
|
||||
text: 'Dashboard',
|
||||
active: true,
|
||||
},
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user