2022-08-29 10:02:24 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
2023-06-05 18:36:26 +00:00
|
|
|
<div>{{ hello }}</div>
|
|
|
|
<NuxtPage />
|
2022-08-29 10:02:24 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default defineNuxtComponent({
|
2023-06-05 18:36:26 +00:00
|
|
|
fetchKey: () => 'hello',
|
2023-04-10 21:57:13 +00:00
|
|
|
async setup () {
|
|
|
|
await nextTick()
|
|
|
|
useRuntimeConfig()
|
|
|
|
},
|
2022-08-29 10:02:24 +00:00
|
|
|
async asyncData () {
|
2023-04-10 21:57:13 +00:00
|
|
|
await nextTick()
|
2022-08-29 10:02:24 +00:00
|
|
|
return {
|
2024-04-05 18:08:32 +00:00
|
|
|
hello: await $fetch('/api/hello'),
|
2022-08-29 10:02:24 +00:00
|
|
|
}
|
2024-04-05 18:08:32 +00:00
|
|
|
},
|
2022-08-29 10:02:24 +00:00
|
|
|
})
|
|
|
|
</script>
|