Browse Source

fetch globalstore globally

otherwise this will load on login to homepage
pull/1244/head
Bernd Storath 12 months ago
parent
commit
a3bb240710
  1. 4
      src/app.vue
  2. 4
      src/pages/index.vue

4
src/app.vue

@ -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',

4
src/pages/index.vue

@ -50,10 +50,6 @@ const clientsStore = useClientsStore();
const intervalId = ref<NodeJS.Timeout | null>(null);
globalStore.fetchTrafficStats();
globalStore.fetchChartType();
globalStore.fetchRelease();
onMounted(() => {
// TODO?: replace with websocket or similar
intervalId.value = setInterval(() => {

Loading…
Cancel
Save