Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. const router = new Router({
  2. base: '/v/',
  3. mode: 'history',
  4. routes: routes
  5. });
  6.  
  7. const routers = [
  8. ...
  9. {
  10. path: '/wholesale-catalogue/',
  11. name: 'wholesale-catalogue',
  12. component: () => import('./views/WholesaleCatalogue.vue')
  13. }
  14. ...
  15. ]
  16.  
  17. const router = new Router({
  18. mode: 'history',
  19. routes: [
  20. { path: 'v', component: BaseView, children: routers }
  21. ]
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement