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

11 lines
181 B
Vue

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