Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Oct 26, 2023
1 parent beef057 commit 02362a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/layout/src/components/SiderMenu/BaseMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class MenuUtil {

const childrenList = this.getNavMenuItems(
children,
isGroup && level === 0 ? level : level + 1,
isGroup && level === 0 && this.props.collapsed ? level : level + 1,
);

return [
Expand Down

0 comments on commit 02362a1

Please sign in to comment.