index.ts 700 B

123456789101112131415161718192021222324252627282930313233
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. const router = createRouter({
  3. history: createWebHistory(),
  4. routes: [
  5. {
  6. path: '/',
  7. redirect: '/dashboard',
  8. },
  9. {
  10. path: '/dashboard',
  11. name: 'dashboard',
  12. component: () => import('../views/Dashboard.vue'),
  13. },
  14. {
  15. path: '/compose',
  16. name: 'compose',
  17. component: () => import('../views/Compose.vue'),
  18. },
  19. {
  20. path: '/scheduler',
  21. name: 'scheduler',
  22. component: () => import('../views/Scheduler.vue'),
  23. },
  24. {
  25. path: '/settings',
  26. name: 'settings',
  27. component: () => import('../views/Settings.vue'),
  28. },
  29. ],
  30. })
  31. export default router