routes.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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: "/product-detail/:skuGroupId",
  40. component: () => import("layouts/MainLayout.vue"),
  41. children: [
  42. { path: "", component: () => import("pages/ProductDetailPage.vue") },
  43. ],
  44. },
  45. {
  46. path: "/destination-detail/:destinationId",
  47. component: () => import("layouts/MainLayout.vue"),
  48. children: [
  49. { path: "", component: () => import("pages/DestinationDetailPage.vue") },
  50. ],
  51. },
  52. {
  53. path: "/blog-detail/:blogI",
  54. component: () => import("layouts/MainLayout.vue"),
  55. children: [
  56. { path: "", component: () => import("pages/BlogDetailPage.vue") },
  57. ],
  58. },
  59. // Always leave this as last one,
  60. // but you can also remove it
  61. {
  62. path: "/:catchAll(.*)*",
  63. component: () => import("pages/ErrorNotFound.vue"),
  64. },
  65. ];
  66. export default routes;