fix: regression caused by #887

pull/968/head
Divyansh Singh 2 years ago
parent e0b730aa8e
commit 30249dc2c3

@ -10,7 +10,8 @@ export function useSidebar() {
const sidebar = computed(() => {
const sidebarConfig = theme.value.sidebar
return sidebarConfig ? getSidebar(sidebarConfig, route.path) : []
const relativePath = route.data.relativePath
return sidebarConfig ? getSidebar(sidebarConfig, relativePath) : []
})
const hasSidebar = computed(() => {

Loading…
Cancel
Save