From ff776efb986c91abbaab54a23a45c1be99427e99 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Wed, 10 Jul 2024 00:55:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(theme):=20=E4=BF=AE=E5=A4=8D=20footer=20?= =?UTF-8?q?=E5=9C=A8=E9=A6=96=E9=A1=B5=E7=9A=84=E9=94=99=E8=AF=AF=E6=B8=B2?= =?UTF-8?q?=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme/src/client/components/Home/VPHome.vue | 2 +- theme/src/client/components/VPFooter.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/theme/src/client/components/Home/VPHome.vue b/theme/src/client/components/Home/VPHome.vue index 8e2b3fa6..3637abac 100644 --- a/theme/src/client/components/Home/VPHome.vue +++ b/theme/src/client/components/Home/VPHome.vue @@ -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 }) diff --git a/theme/src/client/components/VPFooter.vue b/theme/src/client/components/VPFooter.vue index b57cc0ae..271974c0 100644 --- a/theme/src/client/components/VPFooter.vue +++ b/theme/src/client/components/VPFooter.vue @@ -50,6 +50,7 @@ onMounted(() => { } .footer-no-border .vp-footer { + background-color: transparent; border-top: none; }