An ebook/comic library service and web client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
541 B

  1. import Vue from 'vue';
  2. import Router from 'vue-router';
  3. import Home from './views/Home.vue';
  4. Vue.use(Router);
  5. export default new Router({
  6. routes: [
  7. {
  8. path: '/',
  9. name: 'home',
  10. component: Home,
  11. },
  12. {
  13. path: '/about',
  14. name: 'about',
  15. // route level code-splitting
  16. // this generates a separate chunk (about.[hash].js) for this route
  17. // which is lazy-loaded when the route is visited.
  18. component: () => import(/* webpackChunkName: "about" */ './views/About.vue'),
  19. },
  20. ],
  21. });