更新管理后台布局
This commit is contained in:
@@ -17,22 +17,18 @@ import { api } from '../api/client'
|
||||
import { fetchFeedbackStats } from '../api/feedbacks'
|
||||
import { fetchPasswordResets } from '../api/passwordResets'
|
||||
import { fetchSystemStats } from '../api/stats'
|
||||
import StatsCards from '../components/StatsCards.vue'
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
|
||||
const stats = ref({})
|
||||
const loadingStats = ref(false)
|
||||
|
||||
const adminUsername = computed(() => stats.value?.admin_username || '')
|
||||
|
||||
async function refreshStats() {
|
||||
loadingStats.value = true
|
||||
try {
|
||||
stats.value = await fetchSystemStats()
|
||||
} finally {
|
||||
loadingStats.value = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -185,7 +181,6 @@ async function go(path) {
|
||||
</el-header>
|
||||
|
||||
<el-main class="layout-main">
|
||||
<StatsCards :stats="stats" :loading="loadingStats" />
|
||||
<Suspense>
|
||||
<template #default>
|
||||
<RouterView />
|
||||
|
||||
Reference in New Issue
Block a user