diff --git a/src/client/theme-default/composables/sidebar.ts b/src/client/theme-default/composables/sidebar.ts index 7baedde4..123fe9cc 100644 --- a/src/client/theme-default/composables/sidebar.ts +++ b/src/client/theme-default/composables/sidebar.ts @@ -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(() => {