diff --git a/components/SystemStats.vue b/components/SystemStats.vue index ab222234..18ce89f3 100644 --- a/components/SystemStats.vue +++ b/components/SystemStats.vue @@ -105,12 +105,14 @@ async function status() { async function systemStatus() { const channel = configStore.configGui[configStore.configID].id - await $fetch(`/api/system/${channel}`, { - method: 'GET', - headers: { ...contentType, ...authStore.authHeader }, - }).then((stat: SystemStatistics) => { - sysStat.value = stat - }) + if (!document?.hidden) { + await $fetch(`/api/system/${channel}`, { + method: 'GET', + headers: { ...contentType, ...authStore.authHeader }, + }).then((stat: SystemStatistics) => { + sysStat.value = stat + }) + } }