Skip to content

Commit

Permalink
🐞 fix: 修复评论路径
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyu1998 committed Aug 17, 2024
1 parent a6e998f commit 8c8de74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .vitepress/theme/components/Comments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
emit-metadata="0"
input-position="top"
:theme="theme"
:lang="lang"
lang="zh-CN"
loading="lazy"
crossorigin="anonymous"
/>
Expand All @@ -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);
Expand Down

0 comments on commit 8c8de74

Please sign in to comment.