Template
1
0
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:
pany 2024-01-04 22:48:18 +08:00 committed by GitHub
parent ff165c418a
commit 6f63fcc426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"