diff --git a/src/components/InSessionNow.vue b/src/components/InSessionNow.vue index 5d00526..366a824 100644 --- a/src/components/InSessionNow.vue +++ b/src/components/InSessionNow.vue @@ -45,8 +45,12 @@ }, async mounted() { await this.loadData(); + this.startLoop(); }, methods: { + startLoop() { + setInterval(this.loadData, 10000) + }, async loadData() { this.isLoading = true; let data = await getFlightplansNow(); @@ -58,8 +62,7 @@ return acc; }, []); - // this.list = rows; - this.list = this.test; + this.list = rows; } }, components: { diff --git a/src/components/SolariBoard.vue b/src/components/SolariBoard.vue index b881557..648b4d9 100644 --- a/src/components/SolariBoard.vue +++ b/src/components/SolariBoard.vue @@ -22,7 +22,8 @@