mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
feat(theme): 首页显示回到顶部按钮
This commit is contained in:
parent
ba235c421f
commit
bb8a971c90
@ -27,7 +27,7 @@ const stroke = computed(() =>
|
||||
)
|
||||
|
||||
const mustHidden = computed(() => {
|
||||
return page.value.frontmatter.backToTop === false || page.value.frontmatter.home
|
||||
return page.value.frontmatter.backToTop === false || (page.value.frontmatter.home && page.value.frontmatter.config && (page.value.frontmatter.config as any).length <= 1)
|
||||
})
|
||||
|
||||
const show = computed(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user