Import VueRouter instance from router.js.

This commit is contained in:
2020-10-11 13:54:16 +02:00
committed by KevinMidboe
parent 9d9947d7dc
commit 2062f64999

View File

@@ -1,6 +1,6 @@
import Vue from "vue";
import VueRouter from "vue-router";
import { routes } from "@/router.js";
import VinlottisRouter from "@/router.js";
import Vinlottis from "@/Vinlottis";
import VueAnalytics from "vue-analytics";
@@ -9,13 +9,9 @@ Vue.use(VueAnalytics, {
id: "UA-156846886-1"
});
const router = new VueRouter({
routes: routes
});
new Vue({
el: "#app",
router,
router: VinlottisRouter,
components: { Vinlottis },
template: "<Vinlottis/>",
render: h => h(Vinlottis)