Nuxt/test/fixtures/basic/pages/preview/with-custom-enable.vue

18 lines
250 B
Vue
Raw Normal View History

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