Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Vue from 'vue'
import Router from 'vue-router'
import routes from 'vue-auto-routing'
import { createRouterLayout } from 'vue-router-layout'
Vue.use(Router)
const RouterLayout = createRouterLayout(layout => {
return import('@/layouts/' + layout + '.vue')
})
export default new Router({
routes: [
{
path: '/',
component: RouterLayout,
children: routes
}
]
})