docs: make useFetch example consistent with others (#4742)

This commit is contained in:
zzxswl 2022-05-02 16:47:48 +08:00 committed by GitHub
parent 51ebfd3521
commit 82f959d91f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,11 +73,11 @@ This composable provides a convenient wrapper around `useAsyncData` and `$fetch`
```vue [app.vue] ```vue [app.vue]
<script setup> <script setup>
const { data } = await useFetch('/api/count') const { data: count } = await useFetch('/api/count')
</script> </script>
<template> <template>
Page visits: {{ data.count }} Page visits: {{ count }}
</template> </template>
``` ```