mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
b2b4c64807
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
11 lines
240 B
Vue
11 lines
240 B
Vue
<script nuxt setup lang="ts">
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
const { data } = asyncData('time', () => $fetch('/api/count'))
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
Page visits: {{ data.count }}
|
|
</div>
|
|
</template>
|