fix: fix Hydration completed but contains mismatches error in production (#89)
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user