fix(theme): 修复 footer 在首页的错误渲染

This commit is contained in:
pengzhanbo 2024-07-10 00:55:40 +08:00
parent 67f7b0e0c6
commit ff776efb98
2 changed files with 2 additions and 1 deletions

View File

@ -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 })

View File

@ -50,6 +50,7 @@ onMounted(() => {
}
.footer-no-border .vp-footer {
background-color: transparent;
border-top: none;
}