Skip to content

Commit 6561f0b

Browse files
committed
optimize(projects): optimize code
1 parent 20f8ed3 commit 6561f0b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/store/modules/route/shared.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,7 @@ export function getBreadcrumbsByRoute(
283283

284284
for (const menu of menus) {
285285
if (menu.key === key) {
286-
const breadcrumbMenu = menu;
287-
return [transformMenuToBreadcrumb(breadcrumbMenu)];
286+
return [transformMenuToBreadcrumb(menu)];
288287
}
289288

290289
if (menu.key === activeKey) {

0 commit comments

Comments
 (0)