12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- 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: "/auth/register",
- component: () => import("layouts/MainLayout.vue"),
- children: [{ path: "", component: () => import("pages/RegisterPage.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/:blogId",
- component: () => import("layouts/MainLayout.vue"),
- children: [
- { path: "", component: () => import("pages/BlogDetailPage.vue") },
- ],
- },
- {
- path: "/contact",
- component: () => import("layouts/MainLayout.vue"),
- children: [{ path: "", component: () => import("pages/ContactPage.vue") }],
- },
- {
- path: "/regsuccess",
- component: () => import("layouts/MainLayout.vue"),
- children: [
- { path: "", component: () => import("pages/RegSuccessPage.vue") },
- ],
- },
- // Always leave this as last one,
- // but you can also remove it
- {
- path: "/:catchAll(.*)*",
- component: () => import("pages/ErrorNotFound.vue"),
- },
- ];
- export default routes;
|