Files
ao3-mirror-ssr/src/ssr/ClientOnly.vue
UnknownMp daef30124e
Some checks failed
Node.js CI / build-and-test (push) Has been cancelled
第一次提交
2025-05-02 13:10:55 +08:00

13 lines
349 B
Vue

<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>