diff --git a/src/client/app/components/Content.ts b/src/client/app/components/Content.ts index 382de68b..b20692a7 100644 --- a/src/client/app/components/Content.ts +++ b/src/client/app/components/Content.ts @@ -1,4 +1,4 @@ -import { defineComponent, h } from 'vue' +import { defineComponent, h, watch } from 'vue' import { useData, useRoute } from 'vitepress' import { contentUpdatedCallbacks } from '../utils' @@ -11,7 +11,8 @@ export const Content = defineComponent({ }, setup(props) { const route = useRoute() - const { site } = useData() + const { frontmatter, site } = useData() + watch(frontmatter, runCbs, { deep: true, flush: 'post' }) return () => h( props.as,