更新管理后台布局

This commit is contained in:
2025-12-15 22:18:44 +08:00
parent d650c6f584
commit e699f4fb94
18 changed files with 55 additions and 60 deletions

View File

@@ -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 />