mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix(theme): 修复 footer 在首页的错误渲染
This commit is contained in:
parent
67f7b0e0c6
commit
ff776efb98
@ -60,7 +60,7 @@ let el: HTMLDivElement | null = null
|
||||
|
||||
watch(() => onlyOnce.value, value => nextTick(() => {
|
||||
if (typeof document !== 'undefined') {
|
||||
el ??= document.querySelector('#VPContent')
|
||||
el ??= document.querySelector('.vp-layout')
|
||||
el?.classList.toggle('footer-no-border', value)
|
||||
}
|
||||
}), { immediate: true })
|
||||
|
||||
@ -50,6 +50,7 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.footer-no-border .vp-footer {
|
||||
background-color: transparent;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user