mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-01 18:07:22 +00:00
17 lines
330 B
Vue
17 lines
330 B
Vue
|
|
<script setup lang="ts">
|
|
|
|
const { data } = await useCustomFetch<object>('/beers')
|
|
|
|
</script>
|
|
|
|
<template>
|
|
<NuxtExampleLayout example="other/use-custom-fetch-composable">
|
|
<h1 class="text-xl opacity-50">
|
|
Nuxt custom fetch
|
|
</h1>
|
|
|
|
<pre class="text-left text-xs">{{ data }}</pre>
|
|
</NuxtExampleLayout>
|
|
</template>
|