feat: update

This commit is contained in:
landaiqing
2024-07-05 17:59:09 +08:00
parent a96cf6b2d8
commit e6c4957fef
5 changed files with 94 additions and 32 deletions

View File

@@ -1,6 +1,6 @@
/** @format */
import type { RouteObject } from "react-router-dom";
import { Navigate, RouteObject } from "react-router-dom";
import NoFound from "@/views/404/404";
import Login from "./modules/login/index.ts";
@@ -53,6 +53,10 @@ const routes: RouteObject[] = [
path: "/forget",
Component: (props) => ComponentLoading(Forget, props),
},
{
path: "/main",
element: <Navigate to={"/main/home"} />,
},
{
path: "/main",
Component: (props) => ComponentLoading(Main, props),