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:
parent
c6225b3cf7
commit
c0a950b383
@ -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: ""
|
||||
})
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user