mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
perf(theme): 右侧边栏添加 headers 判断控制显示
This commit is contained in:
parent
ecd20647dd
commit
ba899ec7ca
@ -47,7 +47,7 @@ export function useSidebar() {
|
||||
})
|
||||
|
||||
const hasAside = computed(() => {
|
||||
return !frontmatter.value.home && frontmatter.value.aside !== false
|
||||
return !frontmatter.value.home && frontmatter.value.aside !== false && page.value.headers.length
|
||||
})
|
||||
|
||||
const isSidebarEnabled = computed(() => hasSidebar.value && is960.value)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user