import Vue from 'vue' import Router from 'vue-router' import VHome from '../views/VHome' const VSolution = () => import('../views/VSolution') const VEnterprise = () => import('../views/VEnterprise') Vue.use(Router) export default new Router({ linkExactActiveClass:'navActive', routes: [ { path: '/', redirect:'/home' }, { path: '/home', name: 'home', component: VHome }, { path: '/solution', name: 'solution', component: VSolution }, { path: '/enterprise/:id', name: 'enterprise', component: VEnterprise } ] })