mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 11:19:45 +08:00
路由丢失页添加
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import { RouteObject } from "react-router-dom";
|
||||
import { Login, HomePage, Dashboard } from "../pages";
|
||||
import { Login, HomePage, Dashboard, ErrorPage } from "../pages";
|
||||
|
||||
const routes: RouteObject[] = [
|
||||
{
|
||||
@@ -17,6 +17,10 @@ const routes: RouteObject[] = [
|
||||
path: "/login",
|
||||
element: <Login />,
|
||||
},
|
||||
{
|
||||
path: "*",
|
||||
element: <ErrorPage />,
|
||||
},
|
||||
];
|
||||
|
||||
export default routes;
|
||||
|
||||
Reference in New Issue
Block a user