Meikan client v2
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.

router.ts 555B

1234567891011121314151617181920212223242526272829303132
  1. import Store from '@/store'
  2. import Vue from 'vue'
  3. import Router from 'vue-router'
  4. Vue.use(Router)
  5. import Base from './layouts/Base.vue'
  6. import UserAnime from './views/UserAnime.vue'
  7. import UserSelect from './views/UserSelect.vue'
  8. export default new Router({
  9. mode: 'history',
  10. base: process.env.BASE_URL,
  11. routes: [
  12. {
  13. path: '/',
  14. component: Base,
  15. children: [
  16. {
  17. path: '',
  18. name: 'userSelect',
  19. component: UserSelect,
  20. },
  21. {
  22. path: 'anime',
  23. name: 'userAnime',
  24. component: UserAnime,
  25. },
  26. ],
  27. },
  28. ],
  29. })