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
This commit is contained in:
No name 2024-04-11 14:37:20 +08:00 committed by GitHub
parent 9784cdc840
commit e8a86ec8b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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);