Browse Source

fix: breadcrumb is displayed despite the menu being hidden (#3733)

* fix: bug RangePicker with componentProps valueFormat ('YYYY-MM-DD') does not return the formatted value when using form validate() method #3690

* fix: breadcrumb is displayed despite the menu being hidden
pull/3736/head
No name 2 years ago
committed by GitHub
parent
commit
e8a86ec8b9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      src/layouts/default/header/components/Breadcrumb.vue

5
src/layouts/default/header/components/Breadcrumb.vue

@ -66,7 +66,10 @@
const filterMenus = menus.filter((item) => item.path === parent[0]);
const matched = getMatched(filterMenus, parent) as any;
if (!matched || matched.length === 0) return;
if (!matched || matched.length === 0){
routes.value = [];
return;
}
const breadcrumbList = filterItem(matched);

Loading…
Cancel
Save