Nuxt/examples/with-pages/pages/parent/static-[id].vue

14 lines
217 B
Vue
Raw Normal View History

<template>
<div>
Child reloaded: {{ reloads }}
</div>
</template>
<script setup>
const reloads = useState('static', () => 0)
onMounted(() => { reloads.value++ })
definePageMeta({
key: 'static'
})
</script>