mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-22 03:49:19 +08:00
Update index.vue
This commit is contained in:
parent
ff165c418a
commit
6f63fcc426
@ -29,7 +29,7 @@ const activeMenu = computed(() => {
|
||||
} = route
|
||||
return activeMenu ? activeMenu : path
|
||||
})
|
||||
|
||||
const noHiddenRoutes = computed(() => permissionStore.routes.filter((item) => !item.meta?.hidden))
|
||||
const isCollapse = computed(() => !sidebar.value.opened)
|
||||
const isLeft = computed(() => layoutMode.value === "left")
|
||||
const isTop = computed(() => layoutMode.value === "top")
|
||||
@ -68,7 +68,7 @@ const hiddenScrollbarVerticalBar = computed(() => {
|
||||
:mode="isTop && !isMobile ? 'horizontal' : 'vertical'"
|
||||
>
|
||||
<SidebarItem
|
||||
v-for="route in permissionStore.routes"
|
||||
v-for="route in noHiddenRoutes"
|
||||
:key="route.path"
|
||||
:item="route"
|
||||
:base-path="route.path"
|
||||
|
Loading…
x
Reference in New Issue
Block a user