routes.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. const routes = [
  2. {
  3. path: "/",
  4. component: () => import("layouts/MainLayout.vue"),
  5. children: [{ path: "", component: () => import("pages/IndexPage.vue") }],
  6. },
  7. {
  8. path: "/guideintro",
  9. component: () => import("layouts/MainLayout.vue"),
  10. children: [
  11. { path: "", component: () => import("pages/GuideIntroPage.vue") },
  12. ],
  13. },
  14. {
  15. path: "/blog",
  16. component: () => import("layouts/MainLayout.vue"),
  17. children: [{ path: "", component: () => import("pages/BlogPage.vue") }],
  18. },
  19. {
  20. path: "/product",
  21. component: () => import("layouts/MainLayout.vue"),
  22. children: [
  23. { path: "", component: () => import("pages/TravelShopPage.vue") },
  24. ],
  25. },
  26. {
  27. path: "/destination",
  28. component: () => import("layouts/MainLayout.vue"),
  29. children: [
  30. { path: "", component: () => import("pages/DestinationPage.vue") },
  31. ],
  32. },
  33. {
  34. path: "/auth/login",
  35. component: () => import("layouts/MainLayout.vue"),
  36. children: [{ path: "", component: () => import("pages/LoginPage.vue") }],
  37. },
  38. {
  39. path: "/auth/register",
  40. component: () => import("layouts/MainLayout.vue"),
  41. children: [{ path: "", component: () => import("pages/RegisterPage.vue") }],
  42. },
  43. {
  44. path: "/product-detail/:skuGroupId",
  45. component: () => import("layouts/MainLayout.vue"),
  46. children: [
  47. { path: "", component: () => import("pages/ProductDetailPage.vue") },
  48. ],
  49. },
  50. {
  51. path: "/destination-detail/:destinationId",
  52. component: () => import("layouts/MainLayout.vue"),
  53. children: [
  54. { path: "", component: () => import("pages/DestinationDetailPage.vue") },
  55. ],
  56. },
  57. {
  58. path: "/blog-detail/:blogId",
  59. component: () => import("layouts/MainLayout.vue"),
  60. children: [
  61. { path: "", component: () => import("pages/BlogDetailPage.vue") },
  62. ],
  63. },
  64. {
  65. path: "/contact",
  66. component: () => import("layouts/MainLayout.vue"),
  67. children: [{ path: "", component: () => import("pages/ContactPage.vue") }],
  68. },
  69. {
  70. path: "/regsuccess",
  71. component: () => import("layouts/MainLayout.vue"),
  72. children: [
  73. { path: "", component: () => import("pages/RegSuccessPage.vue") },
  74. ],
  75. },
  76. // Always leave this as last one,
  77. // but you can also remove it
  78. {
  79. path: "/:catchAll(.*)*",
  80. component: () => import("pages/ErrorNotFound.vue"),
  81. },
  82. ];
  83. export default routes;