From 8c8de74c60027504d843edbb1e41dc4d8115c20e Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Sat, 17 Aug 2024 10:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/theme/components/Comments.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.vitepress/theme/components/Comments.vue b/.vitepress/theme/components/Comments.vue index b6304d1..4b2cdbd 100644 --- a/.vitepress/theme/components/Comments.vue +++ b/.vitepress/theme/components/Comments.vue @@ -14,7 +14,7 @@ emit-metadata="0" input-position="top" :theme="theme" - :lang="lang" + lang="zh-CN" loading="lazy" crossorigin="anonymous" /> @@ -29,7 +29,6 @@ const route = useRoute(); const { isDark } = useData(); const theme = computed(() => (isDark.value ? "dark_dimmed" : "light_high_contrast")); -const lang = computed(() => route.path.startsWith("/en") ? 'en' : 'zh-Hans'); // language变化不会触发重新加载,这里v-if强制刷新 const showComment = ref(true);