mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
perf(theme): 左侧侧边栏默认展开活动项
This commit is contained in:
parent
e03388098e
commit
3cb7d8862f
@ -373,7 +373,7 @@ export function useSidebarControl(item: ComputedRef<ResolvedSidebarItem>): Sideb
|
||||
}
|
||||
|
||||
return item.value.items
|
||||
? containsActiveLink(page.value.filePathRelative || '', item.value.items)
|
||||
? containsActiveLink(page.value.path, item.value.items)
|
||||
: false
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user