Skip to content

Commit 30249dc

Browse files
committed
fix: regression caused by #887
1 parent e0b730a commit 30249dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/theme-default/composables/sidebar.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export function useSidebar() {
1010

1111
const sidebar = computed(() => {
1212
const sidebarConfig = theme.value.sidebar
13-
return sidebarConfig ? getSidebar(sidebarConfig, route.path) : []
13+
const relativePath = route.data.relativePath
14+
return sidebarConfig ? getSidebar(sidebarConfig, relativePath) : []
1415
})
1516

1617
const hasSidebar = computed(() => {

0 commit comments

Comments
 (0)