Add log to debug home component

This commit is contained in:
Torjus Håkestad 2021-04-11 11:49:46 +02:00
parent 889c41853e
commit 2467e7ba47

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="home"> <div class="home">
<b-container :v-if="totalStats"> <b-container v-if="totalStats">
<b-row> <b-row>
<b-col class="total-title"> <b-col class="total-title">
<h2>Total login attempts</h2> <h2>Total login attempts</h2>
@ -72,6 +72,7 @@ export default class Home extends Vue {
.get<TotalStatsResult[]>(url) .get<TotalStatsResult[]>(url)
.then((resp) => { .then((resp) => {
this.totalStats = resp.data; this.totalStats = resp.data;
console.log(this.totalStats);
}) })
.catch((e) => { .catch((e) => {
console.log(e); console.log(e);