接入路由

This commit is contained in:
none
2023-03-21 11:08:30 +08:00
parent 780457557f
commit 95886f5b0a
11 changed files with 83 additions and 38 deletions

17
src/routes/index.tsx Normal file
View File

@@ -0,0 +1,17 @@
import { RouteObject } from "react-router-dom";
import { LoginPage, LayoutPage } from "../pages";
const routes: RouteObject[] = [
{
path: "/",
element: <LayoutPage />,
children: [],
},
{
path: "/login",
element: <LoginPage />,
},
];
export default routes;