use async load
This commit is contained in:
@@ -1,15 +1,10 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
import UserList from "@/pages/user/UserList.vue";
|
||||
import UserDetail from "@/pages/user/UserDetail.vue";
|
||||
import UserEdit from "@/pages/user/UserEdit.vue";
|
||||
import UserRoleAssign from "@/pages/user/UserRoleAssign.vue";
|
||||
import UserInvitePoster from "@/pages/user/UserInvitePoster.vue";
|
||||
|
||||
const userRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/users/invite/poster",
|
||||
name: "UserInvitePoster",
|
||||
component: UserInvitePoster,
|
||||
component: () => import("@/pages/user/UserInvitePoster.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
@@ -23,7 +18,7 @@ const userRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/users",
|
||||
name: "UserList",
|
||||
component: UserList,
|
||||
component: () => import("@/pages/user/UserList.vue"),
|
||||
meta: {
|
||||
depth: 3,
|
||||
navBarVisible: true,
|
||||
@@ -37,7 +32,7 @@ const userRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/users/create",
|
||||
name: "UserCreatePage",
|
||||
component: UserEdit,
|
||||
component: () => import("@/pages/user/UserEdit.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
@@ -51,7 +46,7 @@ const userRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/users/:id",
|
||||
name: "UserDetail",
|
||||
component: UserDetail,
|
||||
component: () => import("@/pages/user/UserDetail.vue"),
|
||||
meta: {
|
||||
depth: 4,
|
||||
navBarVisible: true,
|
||||
@@ -65,7 +60,7 @@ const userRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/users/:id/edit",
|
||||
name: "UserEdit",
|
||||
component: UserEdit,
|
||||
component: () => import("@/pages/user/UserEdit.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
@@ -79,7 +74,7 @@ const userRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/management/users/:id/roles",
|
||||
name: "UserRoleAssignFromUser",
|
||||
component: UserRoleAssign,
|
||||
component: () => import("@/pages/user/UserRoleAssign.vue"),
|
||||
meta: {
|
||||
depth: 5,
|
||||
navBarVisible: true,
|
||||
|
||||
Reference in New Issue
Block a user