123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- 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: "/my-blogs",
- component: () => import("layouts/MainLayout.vue"),
- children: [{ path: "", component: () => import("pages/MyBlogsPage.vue") }],
- },
- {
- path: "/my-orders",
- component: () => import("layouts/MainLayout.vue"),
- children: [{ path: "", component: () => import("pages/MyOrdersPage.vue") }],
- },
- {
- path: "/user-info",
- component: () => import("layouts/MainLayout.vue"),
- children: [{ path: "", component: () => import("pages/UserInfoPage.vue") }],
- },
- {
- path: "/blog-create",
- component: () => import("layouts/MainLayout.vue"),
- children: [
- { path: "", component: () => import("pages/BlogCreatePage.vue") },
- ],
- },
- {
- path: "/blog-edit/:blogId",
- component: () => import("layouts/MainLayout.vue"),
- children: [{ path: "", component: () => import("pages/BlogEditPage.vue") }],
- },
- {
- path: "/order-detail/:orderId",
- component: () => import("layouts/MainLayout.vue"),
- children: [
- { path: "", component: () => import("pages/OrderDetailPage.vue") },
- ],
- },
- {
- name: "book",
- path: "/book",
- component: () => import("layouts/MainLayout.vue"),
- children: [{ path: "", component: () => import("pages/BookPage.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;
|