diff --git a/frontend/src/router.js b/frontend/src/router.js index 67906f0..fc3f801 100644 --- a/frontend/src/router.js +++ b/frontend/src/router.js @@ -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 } ] }); diff --git a/frontend/src/views/Stats.vue b/frontend/src/views/Stats.vue index 87baf84..1bbae9d 100644 --- a/frontend/src/views/Stats.vue +++ b/frontend/src/views/Stats.vue @@ -6,6 +6,7 @@ import Vue from "vue"; import StatsView from "../components/StatsView"; export default { + name: "stats", components: { StatsView }, data() { chartData: null;