diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index 2cada58..0497314 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -137,39 +137,110 @@ const jsonLd = { -
- - - -
+ } + + // 确保在 Astro 完全加载后执行 + if (document.readyState === 'loading') { + document.addEventListener('DOMContentLoaded', initHongmoAI); + } else { + initHongmoAI(); + } + +