Эх сурвалжийг харах

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
No name 1 жил өмнө
parent
commit
e8a86ec8b9

+ 4 - 1
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);