Added route for stats.

This commit is contained in:
neviyn 2018-09-21 10:13:53 +01:00
parent d3147da9aa
commit 418563d70d
2 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import Vue from "vue";
import Router from "vue-router";
import Home from "./views/Home.vue";
import Observation from "./views/Observation.vue";
import Stats from "./views/Stats.vue";
Vue.use(Router);
@ -16,6 +17,11 @@ export default new Router({
path: "/observation",
name: "observation",
component: Observation
},
{
path: "/stats",
name: "stats",
component: Stats
}
]
});

View File

@ -6,6 +6,7 @@
import Vue from "vue";
import StatsView from "../components/StatsView";
export default {
name: "stats",
components: { StatsView },
data() {
chartData: null;