src/router/index.ts
@@ -1,6 +1,7 @@ import { createWebHistory, createRouter, RouteRecordRaw } from "vue-router"; /* Layout */ import Layout from "@/layout/index.vue"; import path from "path"; /** * Note: 路由配置项 @@ -58,6 +59,10 @@ hidden: true, }, { path: '/main', component: () => import("@/views/main/indexMarge.vue"), }, { path: "", component: Layout, redirect: "/home",