Skip to content

Commit

Permalink
optimize(projects): optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Sep 8, 2024
1 parent 20f8ed3 commit 6561f0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/store/modules/route/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,7 @@ export function getBreadcrumbsByRoute(

for (const menu of menus) {
if (menu.key === key) {
const breadcrumbMenu = menu;
return [transformMenuToBreadcrumb(breadcrumbMenu)];
return [transformMenuToBreadcrumb(menu)];
}

if (menu.key === activeKey) {
Expand Down

0 comments on commit 6561f0b

Please sign in to comment.