mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-23 18:59:44 +08:00
接入路由
This commit is contained in:
17
src/routes/index.tsx
Normal file
17
src/routes/index.tsx
Normal 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;
|
||||
Reference in New Issue
Block a user