call system status only when app is not hidden
This commit is contained in:
parent
03200acf1b
commit
559f4b0d78
@ -105,12 +105,14 @@ async function status() {
|
||||
async function systemStatus() {
|
||||
const channel = configStore.configGui[configStore.configID].id
|
||||
|
||||
if (!document?.hidden) {
|
||||
await $fetch<SystemStatistics>(`/api/system/${channel}`, {
|
||||
method: 'GET',
|
||||
headers: { ...contentType, ...authStore.authHeader },
|
||||
}).then((stat: SystemStatistics) => {
|
||||
sysStat.value = stat
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user