<template>
  <main style="padding: 16px">
    <h1 style="font-size: 18px; font-weight: 600">统计</h1>
    <pre style="margin-top: 12px; background: #f7f7f7; padding: 12px; border-radius: 8px">{{ data }}</pre>
  </main>
</template>

<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { api } from '../api'

const data = ref<any>(null)

onMounted(async () => {
  const resp = await api.get('/statistics')
  data.value = resp.data
})
</script>

