Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 19:09:21 +08:00

chore: remove useless code

This commit is contained in:
pany 2024-02-28 17:23:46 +08:00
parent c6225b3cf7
commit c0a950b383
2 changed files with 1 additions and 9 deletions

View File

@ -7,12 +7,10 @@ import path from "path-browserify"
interface Props {
item: RouteRecordRaw
isTop?: boolean
basePath?: string
}
const props = withDefaults(defineProps<Props>(), {
isTop: false,
basePath: ""
})

View File

@ -63,13 +63,7 @@ const hiddenScrollbarVerticalBar = computed(() => {
:collapse-transition="false"
:mode="isTop && !isMobile ? 'horizontal' : 'vertical'"
>
<SidebarItem
v-for="route in noHiddenRoutes"
:key="route.path"
:item="route"
:base-path="route.path"
:is-top="isTop"
/>
<SidebarItem v-for="route in noHiddenRoutes" :key="route.path" :item="route" :base-path="route.path" />
</el-menu>
</el-scrollbar>
</div>