otherwise this will load on login to homepage
@ -7,6 +7,10 @@
</template>
<script setup lang="ts">
const globalStore = useGlobalStore();
globalStore.fetchTrafficStats();
globalStore.fetchChartType();
globalStore.fetchRelease();
useHead({
bodyAttrs: {
class: 'bg-gray-50 dark:bg-neutral-800',
@ -50,10 +50,6 @@ const clientsStore = useClientsStore();
const intervalId = ref<NodeJS.Timeout | null>(null);
onMounted(() => {
// TODO?: replace with websocket or similar
intervalId.value = setInterval(() => {