When I add a TO or URL to the
items it is also not workingbreadcrumb: [{ label: 'Dashboard Analytics' }],
Please explain how I can add a specific route to the breadcrumb item
items it is also not workingbreadcrumb: [{ label: 'Dashboard Analytics' }],
Code: Select all
watchRouter() {
if(this.$router.currentRoute.value.meta.breadcrumb) {
this.items = [];
const bc = this.$router.currentRoute.value.meta.breadcrumb[0];
for(let pro in bc) {
this.items.push({to: this.$router.currentRoute.value, label: bc[pro]});
}
}
}
Users browsing this forum: No registered users and 16 guests