feat: server function demo

This commit is contained in:
Anthony Fu committed 2021-11-05 01:22:45 +08:00
1 parent 0a351f1aa9
commit 91aa434001
3 files changed
+13

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
<script setup lang="ts">
const { data } = await useFetch('/api/pageview')
</script>
<template>
<div>
Page view: {{ data.pageview }}
</div>
</template>