use async load
This commit is contained in:
+4
-7
@@ -1,8 +1,5 @@
|
||||
import { createRouter, createWebHistory, type RouteLocationNormalized } from "vue-router";
|
||||
import RootLayout from "@/layout/RootLayout.vue";
|
||||
import MainLayout from "@/layout/MainLayout.vue";
|
||||
import Login from "@/pages/user/LoginIndex.vue";
|
||||
import InviteRegister from "@/pages/user/InviteRegister.vue";
|
||||
import chartRoutes from "@/router/routes/chartRoutes";
|
||||
import customerRoutes from "@/router/routes/customerRoutes";
|
||||
import { managementAccountRoutes, managementSettingRoutes, storeRoutes } from "@/router/routes/managementRoutes";
|
||||
@@ -19,7 +16,7 @@ import fulfillmentRoutes from "@/router/routes/fulfillmentRoutes";
|
||||
import { useCurrentStoreStore } from "@/store/currentStoreStore";
|
||||
import { useGlobalUIStore } from "@/store/globalUI";
|
||||
import { gaoRoleCodes } from "@/utils/permission";
|
||||
import { useUserStore } from "timi-web-api";
|
||||
import { useUserStore } from "timi-web-api/store";
|
||||
|
||||
const detailRoutes = [
|
||||
...customerRoutes,
|
||||
@@ -62,7 +59,7 @@ const router = createRouter({
|
||||
{
|
||||
path: "login",
|
||||
name: "Login",
|
||||
component: Login,
|
||||
component: () => import("@/pages/user/LoginIndex.vue"),
|
||||
meta: {
|
||||
depth: 1,
|
||||
navBarVisible: false,
|
||||
@@ -74,7 +71,7 @@ const router = createRouter({
|
||||
{
|
||||
path: "gao/invite/register",
|
||||
name: "InviteRegister",
|
||||
component: InviteRegister,
|
||||
component: () => import("@/pages/user/InviteRegister.vue"),
|
||||
meta: {
|
||||
depth: 1,
|
||||
navBarVisible: false,
|
||||
@@ -85,7 +82,7 @@ const router = createRouter({
|
||||
},
|
||||
{
|
||||
path: "",
|
||||
component: MainLayout,
|
||||
component: () => import("@/layout/MainLayout.vue"),
|
||||
meta: {
|
||||
depth: 1,
|
||||
navBarVisible: false,
|
||||
|
||||
Reference in New Issue
Block a user