feat:init
This commit is contained in:
1 parent
53d0eeac6b
commit
ae0c050010
494 files changed
+17701
-2318
No files matched your search
@@ -0,0 +1,117 @@
|
||||
import { lazy } from "react";
|
||||
import { RouteObject } from "react-router-dom";
|
||||
import { ResidenceLayout } from "@/components/layout";
|
||||
|
||||
const HomePage = lazy(() => import("@/pages/huangyanpei/home"));
|
||||
const HuangyanpeiPlace1 = lazy(() => import("@/pages/huangyanpei/place/place1"));
|
||||
const HuangyanpeiPlace2 = lazy(() => import("@/pages/huangyanpei/place/place2"));
|
||||
const HuangyanpeiPlace3 = lazy(() => import("@/pages/huangyanpei/place/place3"));
|
||||
const HuangyanpeiPlace4 = lazy(() => import("@/pages/huangyanpei/place/place4"));
|
||||
const HuangyanpeiPlace5 = lazy(() => import("@/pages/huangyanpei/place/place5"));
|
||||
const HuangyanpeiPlace6 = lazy(() => import("@/pages/huangyanpei/place/place6"));
|
||||
const HuangyanpeiReflection = lazy(
|
||||
() => import("@/pages/huangyanpei/reflection/scene1")
|
||||
);
|
||||
const HuangyanpeiReflection2 = lazy(
|
||||
() => import("@/pages/huangyanpei/reflection/scene2")
|
||||
);
|
||||
const HuangyanpeiReflection3 = lazy(
|
||||
() => import("@/pages/huangyanpei/reflection/scene3")
|
||||
);
|
||||
const HuangyanpeiReflection4 = lazy(
|
||||
() => import("@/pages/huangyanpei/reflection/scene4")
|
||||
);
|
||||
const HuangyanpeiInternalization = lazy(
|
||||
() => import("@/pages/huangyanpei/internalization")
|
||||
);
|
||||
|
||||
//黄炎培 router
|
||||
// 路径格式:/:moduleName/huangyanpei/:page
|
||||
export const HuangyanpeiRoutes: RouteObject[] = [
|
||||
{
|
||||
path: "/:moduleName/huangyanpei",
|
||||
element: <ResidenceLayout />,
|
||||
children: [
|
||||
{
|
||||
index: true,
|
||||
element: <HomePage />,
|
||||
handle: {
|
||||
videoSrc: "video/huangyanpei/home.mp4",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "home",
|
||||
element: <HomePage />,
|
||||
handle: {
|
||||
videoSrc: "video/huangyanpei/home.mp4",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "place1",
|
||||
element: <HuangyanpeiPlace1 />,
|
||||
handle: {
|
||||
videoSrc: "video/huangyanpei/place1.mp4",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "place2",
|
||||
element: <HuangyanpeiPlace2 />,
|
||||
handle: {
|
||||
videoSrc: "video/huangyanpei/place2.mp4",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "place3",
|
||||
element: <HuangyanpeiPlace3 />,
|
||||
handle: {
|
||||
videoSrc: "video/huangyanpei/place3.mp4",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "place4",
|
||||
element: <HuangyanpeiPlace4 />,
|
||||
handle: {
|
||||
videoSrc: "video/huangyanpei/place4.mp4",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "place5",
|
||||
element: <HuangyanpeiPlace5 />,
|
||||
handle: {
|
||||
videoSrc: "video/huangyanpei/place5.mp4",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "place6",
|
||||
element: <HuangyanpeiPlace6 />,
|
||||
handle: {
|
||||
videoSrc: "video/huangyanpei/place6.mp4",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "reflection",
|
||||
element: <HuangyanpeiReflection />,
|
||||
},
|
||||
{
|
||||
path: "reflection2",
|
||||
element: <HuangyanpeiReflection2 />,
|
||||
},
|
||||
{
|
||||
path: "reflection3",
|
||||
element: <HuangyanpeiReflection3 />,
|
||||
},
|
||||
{
|
||||
path: "reflection4",
|
||||
element: <HuangyanpeiReflection4 />,
|
||||
},
|
||||
{
|
||||
path: "internalization",
|
||||
element: <HuangyanpeiInternalization />,
|
||||
handle: {
|
||||
videoSrc: "video/huangyanpei/internalization.mp4",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user