1import Vue from "vue"; 2import VueRouter from "vue-router"; 3import Home from "../views/Home.vue"; 4 5Vue.use(VueRouter); 6 7const 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 29const router = new VueRouter({ 30 mode: "history", 31 base: process.env.BASE_URL, 32 routes, 33 linkExactActiveClass: "nav__link--current" 34}); 35 36export default router; 37