mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-02 10:27:15 +00:00
16 lines
314 B
Vue
16 lines
314 B
Vue
<template>
|
|
<div
|
|
v-if="status !== 'pending'"
|
|
v-text="'resolved:' + data.resolved"
|
|
/>
|
|
<div
|
|
v-else
|
|
v-text="'loading'"
|
|
/>
|
|
</template>
|
|
|
|
<script setup>
|
|
useNuxtData('call')
|
|
const { data, status } = await useAsyncData('call', () => Promise.resolve({ resolved: true }), { server: false })
|
|
</script>
|