Nuxt/examples/use-fetch/app.vue

10 lines
172 B
Vue
Raw Normal View History

2021-10-11 22:36:50 +00:00
<template>
<div>
Server response: {{ data }}
</div>
</template>
<script setup>
const { data } = await useFetch('/api/hello', { params: { foo: 'bar' } })
</script>