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.

index.js 749B

12345678910111213141516171819202122232425262728293031323334
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. import Home from '../views/Home.vue'
  4. Vue.use(VueRouter)
  5. const routes = [
  6. {
  7. path: '/',
  8. name: 'Home',
  9. component: Home
  10. },
  11. {
  12. path: '/about',
  13. name: 'About',
  14. // route level code-splitting
  15. // this generates a separate chunk (about.[hash].js) for this route
  16. // which is lazy-loaded when the route is visited.
  17. component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  18. },
  19. {
  20. path: '/three',
  21. name: 'ThreeAnime',
  22. component: () => import(/* webpackChunkName: "about" */ '../components/ThreeAnime.vue')
  23. }
  24. ]
  25. const router = new VueRouter({
  26. mode: 'history',
  27. base: process.env.BASE_URL,
  28. routes
  29. })
  30. export default router