feat: update
This commit is contained in:
@@ -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),
|
||||
Reference in New Issue
Block a user