diff --git a/src/layout/components/Breadcrumb/src/Breadcrumb.vue b/src/layout/components/Breadcrumb/src/Breadcrumb.vue index 19be7400..de036654 100644 --- a/src/layout/components/Breadcrumb/src/Breadcrumb.vue +++ b/src/layout/components/Breadcrumb/src/Breadcrumb.vue @@ -37,7 +37,7 @@ export default defineComponent({ }) const getBreadcrumb = () => { - const currentPath = currentRoute.value.path + const currentPath = currentRoute.value.matched.slice(-1)[0].path levelList.value = filter(unref(menuRouters), (node: AppRouteRecordRaw) => { return node.path === currentPath @@ -47,7 +47,7 @@ export default defineComponent({ const renderBreadcrumb = () => { const breadcrumbList = treeToList(unref(levelList)) return breadcrumbList.map((v) => { - const disabled = v.redirect === 'noredirect' + const disabled = !v.redirect || v.redirect === 'noredirect' const meta = v.meta as RouteMeta return (