mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 11:19:45 +08:00
左侧栏初步
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
import React from "react";
|
||||
import { RouteObject } from "react-router-dom";
|
||||
import { Login, HomePage } from "../pages";
|
||||
import { Login, HomePage, Dashboard } from "../pages";
|
||||
|
||||
const routes: RouteObject[] = [
|
||||
{
|
||||
path: "/",
|
||||
element: <HomePage />,
|
||||
children: [
|
||||
{
|
||||
path: "/",
|
||||
element: <Dashboard />,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/login",
|
||||
|
||||
Reference in New Issue
Block a user