chore: remove useless code
This commit is contained in:
parent
c6225b3cf7
commit
c0a950b383
@ -7,12 +7,10 @@ import path from "path-browserify"
|
|||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
item: RouteRecordRaw
|
item: RouteRecordRaw
|
||||||
isTop?: boolean
|
|
||||||
basePath?: string
|
basePath?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(defineProps<Props>(), {
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
isTop: false,
|
|
||||||
basePath: ""
|
basePath: ""
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -63,13 +63,7 @@ const hiddenScrollbarVerticalBar = computed(() => {
|
|||||||
:collapse-transition="false"
|
:collapse-transition="false"
|
||||||
:mode="isTop && !isMobile ? 'horizontal' : 'vertical'"
|
:mode="isTop && !isMobile ? 'horizontal' : 'vertical'"
|
||||||
>
|
>
|
||||||
<SidebarItem
|
<SidebarItem v-for="route in noHiddenRoutes" :key="route.path" :item="route" :base-path="route.path" />
|
||||||
v-for="route in noHiddenRoutes"
|
|
||||||
:key="route.path"
|
|
||||||
:item="route"
|
|
||||||
:base-path="route.path"
|
|
||||||
:is-top="isTop"
|
|
||||||
/>
|
|
||||||
</el-menu>
|
</el-menu>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user