diff --git a/components/layouts/Breadcrumb.vue b/components/layouts/Breadcrumb.vue index cc8bc97..0d6f142 100644 --- a/components/layouts/Breadcrumb.vue +++ b/components/layouts/Breadcrumb.vue @@ -6,13 +6,15 @@ const breadcrumb = computed(() => { let breadcrumb = null; const matched = route.matched; + console.log("matched:", matched); + if (matched[matched.length - 1].meta?.breadcrumb) { breadcrumb = matched[matched.length - 1].meta.breadcrumb; } else { // if no breadcrumb in page meta, get breadcrumb from route matched breadcrumb = matched.map((item) => { return { - name: item.meta.title, + name: item.name, path: item.path, }; }); @@ -33,10 +35,12 @@ const breadcrumb = computed(() => { return breadcrumb; }); +console.log("breadcrumb", breadcrumb); + // Get title from page meta const title = computed(() => { const matched = route.matched; - const title = matched[matched.length - 1].meta.title; + const title = matched[matched.length - 1].name; return title; }); @@ -58,11 +62,7 @@ async function navigateMenu(path) { -
  • +
  • +
    + + +
    +
    +

    Metabase

    +

    + Metabase is a powerful data visualization and analytics tool that allows you to + create and share dashboards, reports, and visualizations with your team. +

    +
    + +
    +
    Loading Metabase dashboard...
    +
    +
    +
    Error loading dashboard: {{ error.message }}
    +
    +