FIX: fix Hydration completed but contains mismatches error in production #89

Merged
ChocolateAceCream merged 1 commits from bugfix into main 2024-05-08 14:05:01 +08:00
Showing only changes of commit 0391bbaabe - Show all commits

View File

@@ -1,17 +1,20 @@
<template> <template>
<Layout> <ClientOnly>
<template #doc-footer-before> <Layout>
<ClientOnly> <template #doc-footer-before>
<Copyright v-if="(frontmatter?.aside ?? true) && (frontmatter?.showArticleMetadata ?? true) && !(frontmatter.authorLink)" :key="md5(page.relativePath)" /> <Copyright
</ClientOnly> v-if="(frontmatter?.aside ?? true) && (frontmatter?.showArticleMetadata ?? true) && !(frontmatter.authorLink)"
</template> :key="md5(page.relativePath)" />
<template #doc-after> </template>
<Comment v-if="(theme.commentConfig?.showComment ?? true) && (frontmatter?.showComment ?? true)" :commentConfig="theme.commentConfig" :key="md5(page.relativePath)" /> <template #doc-after>
</template> <Comment v-if="(theme.commentConfig?.showComment ?? true) && (frontmatter?.showComment ?? true)"
<template #layout-bottom> :commentConfig="theme.commentConfig" :key="md5(page.relativePath)" />
<Footer v-if="!hasSidebar && (theme.footerConfig?.showFooter ?? true) && (frontmatter?.showFooter ?? true)" /> </template>
</template> <template #layout-bottom>
</Layout> <Footer v-if="!hasSidebar && (theme.footerConfig?.showFooter ?? true) && (frontmatter?.showFooter ?? true)" />
</template>
</Layout>
</ClientOnly>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>