🐛 make shiki client-only

This commit is contained in:
Timothy Yin 2024-11-18 02:23:06 +08:00
parent 6304d03e16
commit 6ff37c3ebd

View File

@ -72,7 +72,9 @@ defineProps({
<template v-if="slots.code">
<div class="p-4 overflow-auto">
<Shiki class="text-sm" :lang="lang" :code="codeSlotContent" />
<ClientOnly>
<Shiki class="text-sm" :lang="lang" :code="codeSlotContent" />
</ClientOnly>
</div>
</template>
</div>