<script setup lang="ts">let { data, status } = await useFetch('https://api.tnptrading.fr/home')</script><template> <div v-if="status == 'pending'">Chargement...</div> <div v-else-if="status == 'error'">Erreur : {{ error }}</div> <p v-else>{{ data }}</p></template>