diff options
Diffstat (limited to 'iridescence/src/router/index.js')
-rw-r--r-- | iridescence/src/router/index.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/iridescence/src/router/index.js b/iridescence/src/router/index.js index 28b1079..8c05e28 100644 --- a/iridescence/src/router/index.js +++ b/iridescence/src/router/index.js @@ -1,6 +1,8 @@ import Vue from "vue"; import VueRouter from "vue-router"; import Home from "../views/Home.vue"; +import About from "../views/About.vue"; +import Admin from "../views/Admin.vue"; Vue.use(VueRouter); @@ -16,22 +18,19 @@ const routes = [ // route level code-splitting // this generates a separate chunk (about.[hash].js) for this route // which is lazy-loaded when the route is visited. - component: () => - import(/* webpackChunkName: "about" */ "../views/About.vue") + component: About }, { path: "/admin", name: "Administration", - component: () => - import(/* webpackChunkName: "admin" */ "../views/Admin.vue") + component: Admin } ]; const router = new VueRouter({ mode: "history", base: process.env.BASE_URL, - routes: routes, - linkExactActiveClass: "is-active" + routes }); export default router; |