From bf38838a0dac6b718dad1be109127af1e42bc840 Mon Sep 17 00:00:00 2001 From: aolob Date: Tue, 10 Oct 2023 05:09:28 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=BB=E9=A2=98=E6=9A=97=E9=BB=91?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=AD=89=E7=BA=A7=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- page_begin/footer.html | 4 ++-- page_end.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/page_begin/footer.html b/page_begin/footer.html index 6cf2b2a..b2420e5 100644 --- a/page_begin/footer.html +++ b/page_begin/footer.html @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/page_end.html b/page_end.html index edfed17..8d41f1c 100644 --- a/page_end.html +++ b/page_end.html @@ -23,8 +23,8 @@ } $model.body.theme=='light'?window.highlighter.setTheme(window.codeHighlightTheme):window.highlighter.setTheme(window.darkModeCodeHighlightTheme); - document.body.setAttribute('v-scope', '') - document.body.setAttribute(':data-theme', '$model.body.theme') + document.querySelector("html").setAttribute('v-scope', '') + document.querySelector("html").setAttribute(':data-theme', '$model.body.theme') document.querySelector('#home').setAttribute('v-show', '$model.body.raw.show') console.log($model) -- Gitee