Skip to content

Commit

Permalink
fix: 修复子路由设置 hidden: true 不生效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Feb 5, 2024
1 parent fff3eb9 commit b2597f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/components/Sidebar/SidebarItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ const resolvePath = (routePath: string) => {
<span v-if="props.item.meta?.title">{{ props.item.meta.title }}</span>
</template>
<template v-if="props.item.children">
<sidebar-item
v-for="child in props.item.children"
<SidebarItem
v-for="child in showingChildren"
:key="child.path"
:item="child"
:is-collapse="props.isCollapse"
Expand Down

0 comments on commit b2597f1

Please sign in to comment.