perf(frontend): add api cache layer and reduce report polling pressure

This commit is contained in:
2026-02-07 18:36:55 +08:00
parent c285d1e348
commit 4874aa37f6
38 changed files with 205 additions and 131 deletions
+2 -5
View File
@@ -25,11 +25,8 @@ const stats = ref({})
const adminUsername = computed(() => stats.value?.admin_username || '')
async function refreshStats() {
try {
stats.value = await fetchSystemStats()
} finally {
}
async function refreshStats(options = {}) {
stats.value = await fetchSystemStats(options)
}
const loadingBadges = ref(false)