refactor: 优化AppFooter.vue组件 (#413)

pull/418/head
Lee 2024-09-18 13:34:36 +08:00 committed by GitHub
parent 6483bbd1a7
commit bdff7eaefe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, watch, onMounted } from 'vue'; import { ref, watch, } from 'vue';
import { NolebaseGitChangelog } from '@nolebase/vitepress-plugin-git-changelog/client'; import { NolebaseGitChangelog } from '@nolebase/vitepress-plugin-git-changelog/client';
import { useRoute } from 'vitepress'; import { useRoute } from 'vitepress';
@ -21,10 +21,10 @@ const updateKeyAndFrontmatter = () => {
watch(() => route.path, () => { watch(() => route.path, () => {
isFrontmatterLoaded.value = false; isFrontmatterLoaded.value = false;
updateKeyAndFrontmatter(); updateKeyAndFrontmatter();
}); }, { immediate: true }); // key frontmatter
// key frontmatter // key frontmatter
onMounted(updateKeyAndFrontmatter); // onMounted(updateKeyAndFrontmatter);
</script> </script>
<template> <template>