add
This commit is contained in:
parent
5abb19f467
commit
1a26202e34
|
@ -26,7 +26,6 @@ interface CustomIndexRouteObject extends IndexRouteObject {
|
||||||
name?: string;
|
name?: string;
|
||||||
breadcrumb?: string;
|
breadcrumb?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CustomNonIndexRouteObject extends NonIndexRouteObject {
|
export interface CustomNonIndexRouteObject extends NonIndexRouteObject {
|
||||||
name?: string;
|
name?: string;
|
||||||
children?: CustomRouteObject[];
|
children?: CustomRouteObject[];
|
||||||
|
@ -39,51 +38,51 @@ export type CustomRouteObject =
|
||||||
| CustomIndexRouteObject
|
| CustomIndexRouteObject
|
||||||
| CustomNonIndexRouteObject;
|
| CustomNonIndexRouteObject;
|
||||||
export const routes: CustomRouteObject[] = [
|
export const routes: CustomRouteObject[] = [
|
||||||
// {
|
{
|
||||||
// path: "/",
|
path: "/",
|
||||||
// errorElement: <ErrorPage />,
|
errorElement: <ErrorPage />,
|
||||||
// handle: {
|
handle: {
|
||||||
// crumb() {
|
crumb() {
|
||||||
// return <Link to={"/"}>主页</Link>;
|
return <Link to={"/"}>主页</Link>;
|
||||||
// },
|
},
|
||||||
// },
|
},
|
||||||
// children: [
|
children: [
|
||||||
// {
|
{
|
||||||
// element: <MainLayout></MainLayout>,
|
element: <MainLayout></MainLayout>,
|
||||||
// children: [
|
children: [
|
||||||
// {
|
{
|
||||||
// index: true,
|
index: true,
|
||||||
// element:<Dashboard></Dashboard>,
|
element:<Dashboard></Dashboard>,
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// path: "/staffinformation",
|
path: "/staffinformation",
|
||||||
// element: <StaffInformation></StaffInformation>,
|
element: <StaffInformation></StaffInformation>,
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// path: "/staff",
|
path: "/staff",
|
||||||
// element: <StaffMessage></StaffMessage>,
|
element: <StaffMessage></StaffMessage>,
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// path: "/systemlog",
|
path: "/systemlog",
|
||||||
// element: <SystemLogPage></SystemLogPage>,
|
element: <SystemLogPage></SystemLogPage>,
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// path: "/admin",
|
path: "/admin",
|
||||||
// element: <AdminLayout></AdminLayout>,
|
element: <AdminLayout></AdminLayout>,
|
||||||
// children:adminRoute.children
|
children:adminRoute.children
|
||||||
// },
|
},
|
||||||
|
|
||||||
|
|
||||||
// ],
|
],
|
||||||
// },
|
},
|
||||||
|
|
||||||
// ],
|
],
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// path: "/login",
|
path: "/login",
|
||||||
// breadcrumb: "登录",
|
breadcrumb: "登录",
|
||||||
// element: <LoginPage></LoginPage>,
|
element: <LoginPage></LoginPage>,
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
index: true,
|
index: true,
|
||||||
path: "/",
|
path: "/",
|
||||||
|
|
Loading…
Reference in New Issue