perf(frontend): add api cache layer and reduce report polling pressure
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user