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 Router from "vue-router";
|
||||||
import Home from "./views/Home.vue";
|
import Home from "./views/Home.vue";
|
||||||
import Observation from "./views/Observation.vue";
|
import Observation from "./views/Observation.vue";
|
||||||
|
import Stats from "./views/Stats.vue";
|
||||||
|
|
||||||
Vue.use(Router);
|
Vue.use(Router);
|
||||||
|
|
||||||
@ -16,6 +17,11 @@ export default new Router({
|
|||||||
path: "/observation",
|
path: "/observation",
|
||||||
name: "observation",
|
name: "observation",
|
||||||
component: Observation
|
component: Observation
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/stats",
|
||||||
|
name: "stats",
|
||||||
|
component: Stats
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
import Vue from "vue";
|
import Vue from "vue";
|
||||||
import StatsView from "../components/StatsView";
|
import StatsView from "../components/StatsView";
|
||||||
export default {
|
export default {
|
||||||
|
name: "stats",
|
||||||
components: { StatsView },
|
components: { StatsView },
|
||||||
data() {
|
data() {
|
||||||
chartData: null;
|
chartData: null;
|
||||||
|
Loading…
Reference in New Issue
Block a user