Ver Fonte

feat: 路由配置调整

chenhao há 2 anos atrás
pai
commit
310036796f
1 ficheiros alterados com 6 adições e 6 exclusões
  1. 6 6
      src/routes/index.ts

+ 6 - 6
src/routes/index.ts

@@ -6,6 +6,11 @@ import { SESSION_STORAGE_KEYS } from "@/constants/storage";
 
 const router = createRouter({
   routes: [
+    {
+      path: "/",
+      name: "login",
+      component: () => import("@/pages/login/index.vue"),
+    },
     {
       path: "/",
       component: LayOut,
@@ -31,12 +36,7 @@ const router = createRouter({
           component: () => import("@/pages/school-manage/index.vue"),
         },
       ],
-    },
-    {
-      path: "/",
-      name: "login",
-      component: () => import("@/pages/login/index.vue"),
-    },
+    }
   ],
   history: createWebHistory(),
 });