Skip to content

Commit

Permalink
fix: regression caused by #887
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jul 11, 2022
1 parent e0b730a commit 30249dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/theme-default/composables/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 30249dc

Please sign in to comment.