第一次提交
Some checks failed
Node.js CI / build-and-test (push) Has been cancelled

This commit is contained in:
2025-05-02 13:09:37 +08:00
commit daef30124e
39 changed files with 11325 additions and 0 deletions

12
src/ssr/ClientOnly.vue Normal file
View File

@ -0,0 +1,12 @@
<script setup>
import { useClientOnlyStore } from './clientOnlyStore.js'
const clientOnlyStore = useClientOnlyStore()
</script>
<template data-allow-mismatch>
<template v-if="clientOnlyStore.isClient" data-allow-mismatch>
<slot></slot>
</template><template v-else>
<slot name="ssr" data-allow-mismatch></slot>
</template>
</template>