Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame^] | 1 | import Vue from "vue"; |
| 2 | import VueRouter from "vue-router"; |
| 3 | import Home from "../views/Home.vue"; |
| 4 | |
| 5 | Vue.use(VueRouter); |
| 6 | |
| 7 | const routes = [ |
| 8 | { |
| 9 | path: "/", |
| 10 | name: "home", |
| 11 | component: Home |
| 12 | }, |
| 13 | { |
| 14 | path: "/access-control/local-user-management", |
| 15 | name: "local-users", |
| 16 | component: () => import("@/views/AccessControl/LocalUserManagement.vue") |
| 17 | } |
| 18 | // { |
| 19 | // path: "/about", |
| 20 | // name: "about", |
| 21 | // // route level code-splitting |
| 22 | // // this generates a separate chunk (about.[hash].js) for this route |
| 23 | // // which is lazy-loaded when the route is visited. |
| 24 | // component: () => |
| 25 | // import(/* webpackChunkName: "about" */ "../views/About.vue") |
| 26 | // } |
| 27 | ]; |
| 28 | |
| 29 | const router = new VueRouter({ |
| 30 | mode: "history", |
| 31 | base: process.env.BASE_URL, |
| 32 | routes, |
| 33 | linkExactActiveClass: "nav__link--current" |
| 34 | }); |
| 35 | |
| 36 | export default router; |