diff --git a/src/client/theme-default/Layout.vue b/src/client/theme-default/Layout.vue index 17579d38d546..43a0b89fa778 100644 --- a/src/client/theme-default/Layout.vue +++ b/src/client/theme-default/Layout.vue @@ -135,7 +135,7 @@ const showSidebar = computed(() => { const { themeConfig } = siteRouteData.value - return !isSideBarEmpty(getSideBarConfig(themeConfig.sidebar)) + return !isSideBarEmpty(getSideBarConfig(themeConfig.sidebar, route.path)) }) const toggleSidebar = (to?: boolean) => {