import Vue from 'vue' ; import Router , { RouteConfig } from 'vue-router' ; import Home from './views/Home.vue' ; import idsrvAuth from './idsrvAuth' ; Vue . use ( Router ) ; const routes = [ { path : '/' , name : 'Home' , component : Home } , { path : '/about' , name : 'About' , meta : { authName : idsrvAuth . authName } , component : ( ) => import ( './views/About.vue' ) } ] ; const router = new Router ( { mode : 'history' , base : process . env . BASE_URL , routes } ) ; idsrvAuth . useRouter ( router ) ; export default router ;