From 95c93c7ccb19563bd3fa8d3a13f174223a58f6a5 Mon Sep 17 00:00:00 2001 From: Northword <44738481+northword@users.noreply.github.com> Date: Mon, 6 May 2024 10:28:23 +0800 Subject: [PATCH] fix: refresh comment when switch page (#16) closes: #15 --- .vitepress/theme/components/Giscus.vue | 10 +++++++++- .vitepress/theme/index.ts | 4 ---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.vitepress/theme/components/Giscus.vue b/.vitepress/theme/components/Giscus.vue index 10e1f74..8564c22 100644 --- a/.vitepress/theme/components/Giscus.vue +++ b/.vitepress/theme/components/Giscus.vue @@ -4,10 +4,18 @@ import Giscus from "@giscus/vue"; // import "../styles/giscus.dark.css"; // import "../styles/giscus.light.css"; + +import { useData } from "vitepress"; + +const { frontmatter, title } = useData();