From 29e1313f58e9a091d68e780505b875430ff4c6f1 Mon Sep 17 00:00:00 2001 From: QIU SHENGMING Date: Tue, 7 Oct 2025 18:39:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=84=E8=AE=BA=E5=8C=BA?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BAbug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/Layout.astro | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 714f846..a11603f 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -372,6 +372,18 @@ function showBanner() { banner.classList.remove('opacity-0', 'scale-105'); } +// 专用于创建loadComment的事件,即通知评论组件进行一次加载 + +function initCommentComponent() { + + const event = new Event("loadComment"); + + document.dispatchEvent(event); + +} + +// twikoo评论 + function init() { // disableAnimation()() // TODO loadTheme();