Nuxt/test/fixtures/basic/pages/preview/with-custom-enable.vue
2024-03-06 17:14:15 +00:00

18 lines
249 B
Vue

<script setup>
const route = useRoute()
const { enabled } = usePreviewMode({
shouldEnable: () => {
return !!route.query.customPreview
}
})
</script>
<template>
<div>
<p id="enabled">
{{ enabled }}
</p>
</div>
</template>