add
This commit is contained in:
parent
271f2e081e
commit
da7d02fd11
|
@ -0,0 +1,3 @@
|
||||||
|
export default function HeaderPage() {
|
||||||
|
return <>header</>
|
||||||
|
}
|
|
@ -4,6 +4,7 @@ import React, { useMemo } from "react";
|
||||||
import {
|
import {
|
||||||
CommentOutlined,
|
CommentOutlined,
|
||||||
FileSearchOutlined,
|
FileSearchOutlined,
|
||||||
|
FireOutlined,
|
||||||
FormOutlined,
|
FormOutlined,
|
||||||
InboxOutlined,
|
InboxOutlined,
|
||||||
MailOutlined,
|
MailOutlined,
|
||||||
|
@ -55,6 +56,11 @@ export function useNavItem() {
|
||||||
label: "心理锦囊",
|
label: "心理锦囊",
|
||||||
icon: <CommentOutlined className="text-base" />,
|
icon: <CommentOutlined className="text-base" />,
|
||||||
},
|
},
|
||||||
|
header: {
|
||||||
|
to: env.LIB_URL || "https://27.57.72.21",
|
||||||
|
label: "南天烽火",
|
||||||
|
icon: <FireOutlined className="text-base" />,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
// 按照指定顺序返回导航项
|
// 按照指定顺序返回导航项
|
||||||
return [
|
return [
|
||||||
|
@ -63,6 +69,7 @@ export function useNavItem() {
|
||||||
staticItems.letterProgress,
|
staticItems.letterProgress,
|
||||||
staticItems.letterList,
|
staticItems.letterList,
|
||||||
staticItems.help,
|
staticItems.help,
|
||||||
|
staticItems.header,
|
||||||
].filter(Boolean);
|
].filter(Boolean);
|
||||||
}, [data, user]);
|
}, [data, user]);
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,8 @@ import NewsEditorPage from "../app/main/help/news/page";
|
||||||
import ScienceEditorPage from "../app/main/help/science/page";
|
import ScienceEditorPage from "../app/main/help/science/page";
|
||||||
import ExampleEditorPage from "../app/main/help/example/page";
|
import ExampleEditorPage from "../app/main/help/example/page";
|
||||||
import { NewsCard } from "../app/main/help/news/NewsCard";
|
import { NewsCard } from "../app/main/help/news/NewsCard";
|
||||||
|
import WithAuth from "../components/utils/with-auth";
|
||||||
|
import HeaderPage from "../components/layout/main/HeaderPage";
|
||||||
export const routes: CustomRouteObject[] = [
|
export const routes: CustomRouteObject[] = [
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
|
@ -85,7 +87,11 @@ export const routes: CustomRouteObject[] = [
|
||||||
{
|
{
|
||||||
path: "submission-success",
|
path: "submission-success",
|
||||||
element: <SubmissionSuccess></SubmissionSuccess>,
|
element: <SubmissionSuccess></SubmissionSuccess>,
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
path: "header",
|
||||||
|
element: <HeaderPage></HeaderPage>,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
adminRoute,
|
adminRoute,
|
||||||
|
|
Loading…
Reference in New Issue