1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- const routes = [
- {
- path: "/",
- component: () => import("layouts/MainLayout.vue"),
- children: [{ path: "", component: () => import("pages/IndexPage.vue") }],
- },
- {
- path: "/guideintro",
- component: () => import("layouts/MainLayout.vue"),
- children: [
- { path: "", component: () => import("pages/GuideIntroPage.vue") },
- ],
- },
- {
- path: "/blog",
- component: () => import("layouts/MainLayout.vue"),
- children: [{ path: "", component: () => import("pages/BlogPage.vue") }],
- },
- {
- path: "/product",
- component: () => import("layouts/MainLayout.vue"),
- children: [
- { path: "", component: () => import("pages/TravelShopPage.vue") },
- ],
- },
- {
- path: "/destination",
- component: () => import("layouts/MainLayout.vue"),
- children: [
- { path: "", component: () => import("pages/DestinationPage.vue") },
- ],
- },
- {
- path: "/auth/login",
- component: () => import("layouts/MainLayout.vue"),
- children: [{ path: "", component: () => import("pages/LoginPage.vue") }],
- },
- {
- path: "/product-detail/:skuGroupId",
- component: () => import("layouts/MainLayout.vue"),
- children: [
- { path: "", component: () => import("pages/ProductDetailPage.vue") },
- ],
- },
- {
- path: "/destination-detail/:destinationId",
- component: () => import("layouts/MainLayout.vue"),
- children: [
- { path: "", component: () => import("pages/DestinationDetailPage.vue") },
- ],
- },
- {
- path: "/blog-detail/:blogI",
- component: () => import("layouts/MainLayout.vue"),
- children: [
- { path: "", component: () => import("pages/BlogDetailPage.vue") },
- ],
- },
- // Always leave this as last one,
- // but you can also remove it
- {
- path: "/:catchAll(.*)*",
- component: () => import("pages/ErrorNotFound.vue"),
- },
- ];
- export default routes;
|