Added route for stats.
This commit is contained in:
parent
d3147da9aa
commit
418563d70d
@ -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
|
||||
}
|
||||
]
|
||||
});
|
||||
|
@ -6,6 +6,7 @@
|
||||
import Vue from "vue";
|
||||
import StatsView from "../components/StatsView";
|
||||
export default {
|
||||
name: "stats",
|
||||
components: { StatsView },
|
||||
data() {
|
||||
chartData: null;
|
||||
|
Loading…
Reference in New Issue
Block a user