Nuxt/examples/use-fetch/app.vue
2021-10-12 14:51:41 +02:00

10 lines
172 B
Vue

<template>
<div>
Server response: {{ data }}
</div>
</template>
<script setup>
const { data } = await useFetch('/api/hello', { params: { foo: 'bar' } })
</script>