mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix(theme): sidebar prefix concat incorrectly
This commit is contained in:
parent
3b5e2cc5b3
commit
9f3de6b8ea
@ -118,10 +118,10 @@ export function getSidebar(routePath: string, routeLocal: string): ResolvedSideb
|
||||
)
|
||||
}
|
||||
else if (isArray(sidebar)) {
|
||||
return resolveSidebarItems(sidebar, dir)
|
||||
return resolveSidebarItems(sidebar, routeLocal)
|
||||
}
|
||||
else if (isPlainObject(sidebar)) {
|
||||
const prefix = normalizePrefix(dir, sidebar.prefix)
|
||||
const prefix = normalizePrefix(routeLocal, removeLeadingSlash(sidebar.prefix || ''))
|
||||
return resolveSidebarItems(
|
||||
sidebar.items === 'auto'
|
||||
? autoDirSidebar.value[prefix]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user