Skip to content

Commit

Permalink
fix: breadcrumb is displayed despite the menu being hidden (#3733)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
doraemonxxx committed Apr 11, 2024
1 parent 9784cdc commit e8a86ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/layouts/default/header/components/Breadcrumb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e8a86ec

Please sign in to comment.