init
This commit is contained in:
19
frontend/superadmin/src/views/DashboardPage.vue
Normal file
19
frontend/superadmin/src/views/DashboardPage.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user