mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 01:53:55 +00:00
17 lines
300 B
Vue
17 lines
300 B
Vue
|
<template>
|
||
|
<div>
|
||
|
Single
|
||
|
<div>
|
||
|
{{ data }}
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script setup lang="ts">
|
||
|
const { data } = await useSleep()
|
||
|
|
||
|
if (data.value === null || data.value === undefined || data.value.length <= 0) {
|
||
|
throw new Error('Data should never be null or empty.')
|
||
|
}
|
||
|
</script>
|