use async load
This commit is contained in:
@@ -1,18 +1,10 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
import QuickSignInPage from "@/pages/home/QuickSignInPage.vue";
|
||||
import EventRecordEdit from "@/pages/event/EventRecordEdit.vue";
|
||||
import CustomerList from "@/pages/customer/CustomerList.vue";
|
||||
import CustomerInviteRank from "@/pages/customer/CustomerInviteRank.vue";
|
||||
import CustomerInviteRelation from "@/pages/customer/CustomerInviteRelation.vue";
|
||||
import CustomerDetail from "@/pages/customer/CustomerDetail.vue";
|
||||
import CustomerInviteeList from "@/pages/customer/CustomerInviteeList.vue";
|
||||
import CustomerEdit from "@/pages/customer/CustomerEdit.vue";
|
||||
|
||||
const customerRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/customer/quick-sign-in",
|
||||
name: "QuickSignInPage",
|
||||
component: QuickSignInPage,
|
||||
component: () => import("@/pages/home/QuickSignInPage.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
@@ -26,7 +18,7 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/customer/registration",
|
||||
name: "CustomerEventRecordCreate",
|
||||
component: EventRecordEdit,
|
||||
component: () => import("@/pages/event/EventRecordEdit.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
@@ -40,7 +32,7 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/customers",
|
||||
name: "CustomerList",
|
||||
component: CustomerList,
|
||||
component: () => import("@/pages/customer/CustomerList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
@@ -54,7 +46,7 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/customer-invite-rank",
|
||||
name: "CustomerInviteRank",
|
||||
component: CustomerInviteRank,
|
||||
component: () => import("@/pages/customer/CustomerInviteRank.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
@@ -68,7 +60,7 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/customer-invite-relation",
|
||||
name: "CustomerInviteRelation",
|
||||
component: CustomerInviteRelation,
|
||||
component: () => import("@/pages/customer/CustomerInviteRelation.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
@@ -82,7 +74,7 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/customers/create",
|
||||
name: "CustomerCreate",
|
||||
component: CustomerEdit,
|
||||
component: () => import("@/pages/customer/CustomerEdit.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
@@ -96,7 +88,7 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/customers/:id",
|
||||
name: "CustomerDetail",
|
||||
component: CustomerDetail,
|
||||
component: () => import("@/pages/customer/CustomerDetail.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
@@ -110,7 +102,7 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/customers/:id/invitees",
|
||||
name: "CustomerInviteeList",
|
||||
component: CustomerInviteeList,
|
||||
component: () => import("@/pages/customer/CustomerInviteeList.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
@@ -124,7 +116,7 @@ const customerRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/customers/:id/edit",
|
||||
name: "CustomerEdit",
|
||||
component: CustomerEdit,
|
||||
component: () => import("@/pages/customer/CustomerEdit.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
|
||||
Reference in New Issue
Block a user