fix: type errors and warnings (#81)
This commit is contained in:
1 parent
a957421136
commit
1c0b7d098b
1 file changed
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const { data } = await useFetch('/api/pageview')
|
const { data } = await useFetch('/api/pageview')
|
||||||
|
|
||||||
const time = useTimeAgo(computed(() => data.value!.startAt))
|
const time = useTimeAgo(computed(() => data.value?.startAt as number))
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div text-gray:80>
|
<div text-gray:80>
|
||||||
<span font-500 text-gray>{{ data!.pageview }}</span>
|
<span font-500 text-gray>{{ data?.pageview }}</span>
|
||||||
page views since
|
page views since
|
||||||
<span text-gray>{{ time }}</span>
|
<span text-gray>{{ time }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user