Import VueRouter instance from router.js.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import Vue from "vue";
|
import Vue from "vue";
|
||||||
import VueRouter from "vue-router";
|
import VueRouter from "vue-router";
|
||||||
import { routes } from "@/router.js";
|
import VinlottisRouter from "@/router.js";
|
||||||
import Vinlottis from "@/Vinlottis";
|
import Vinlottis from "@/Vinlottis";
|
||||||
import VueAnalytics from "vue-analytics";
|
import VueAnalytics from "vue-analytics";
|
||||||
|
|
||||||
@@ -9,13 +9,9 @@ Vue.use(VueAnalytics, {
|
|||||||
id: "UA-156846886-1"
|
id: "UA-156846886-1"
|
||||||
});
|
});
|
||||||
|
|
||||||
const router = new VueRouter({
|
|
||||||
routes: routes
|
|
||||||
});
|
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
el: "#app",
|
el: "#app",
|
||||||
router,
|
router: VinlottisRouter,
|
||||||
components: { Vinlottis },
|
components: { Vinlottis },
|
||||||
template: "<Vinlottis/>",
|
template: "<Vinlottis/>",
|
||||||
render: h => h(Vinlottis)
|
render: h => h(Vinlottis)
|
||||||
|
|||||||
Reference in New Issue
Block a user