book.js 510 B

12345678910111213141516171819202122232425
  1. import DEFAULT from '@/layouts/default';
  2. export const createBookRouters = [
  3. // 教材
  4. {
  5. path: '/book',
  6. component: DEFAULT,
  7. redirect: '/book/create',
  8. children: [
  9. {
  10. path: 'create',
  11. component: () => import('@/views/book/create.vue'),
  12. },
  13. {
  14. path: 'setting/:book_id',
  15. component: () => import('@/views/book/setting.vue'),
  16. },
  17. ],
  18. },
  19. // 章节
  20. {
  21. path: '/chapter',
  22. component: () => import('@/views/book/chapter.vue'),
  23. },
  24. ];