routes.js 767 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. const routes = [
  2. {
  3. path: "/",
  4. component: () => import("layouts/MainLayout.vue"),
  5. meta: { requireAuth: true },
  6. children: [
  7. {
  8. path: "",
  9. name: "Home",
  10. component: () => import("pages/IndexPage.vue"),
  11. meta: { requireAuth: true },
  12. },
  13. ],
  14. },
  15. {
  16. path: "/login",
  17. component: () => import("layouts/LoginLayout.vue"),
  18. children: [
  19. {
  20. path: "",
  21. name: "Login",
  22. component: () => import("pages/LoginPage.vue"),
  23. meta: {
  24. title: "Login",
  25. },
  26. },
  27. ],
  28. },
  29. // Always leave this as last one,
  30. // but you can also remove it
  31. {
  32. path: "/:catchAll(.*)*",
  33. component: () => import("pages/ErrorNotFound.vue"),
  34. },
  35. ];
  36. export default routes;