Skip to content

Commit

Permalink
fix: 子级菜单非页面则设置alwaysShow true
Browse files Browse the repository at this point in the history
  • Loading branch information
cadecode committed May 6, 2023
1 parent a8e86e0 commit 1133f8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/router/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function menuToRoute(menu) {
// 子级
if (menu.parentId !== null) {
const route = {
alwaysShow: !menu.leafFlag,
path: menu.routePath,
name: menu.routeName,
component: requireComponent(menu.componentPath),
Expand Down

0 comments on commit 1133f8f

Please sign in to comment.