refactor: 重构登陆模块
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
import { createRouter, createWebHistory } from "@ionic/vue-router";
|
||||
import authRoutes from "./auth";
|
||||
import { createRouterGuard } from "./guard";
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
@@ -11,6 +12,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
path: "/:pathMatch(.*)*",
|
||||
redirect: "/layout/riwa",
|
||||
},
|
||||
...authRoutes,
|
||||
{
|
||||
path: "/layout",
|
||||
component: () => import("@/components/layout/default.vue"),
|
||||
|
||||
Reference in New Issue
Block a user