feat:init

This commit is contained in:
zhongyidian committed 2025-12-29 19:19:10 +08:00
1 parent 53d0eeac6b
commit ae0c050010
494 files changed
+17701 -2318

No files matched your search

+117
View File
@@ -0,0 +1,117 @@
import { lazy } from "react";
import { RouteObject } from "react-router-dom";
import { ResidenceLayout } from "@/components/layout";
const HomePage = lazy(() => import("@/pages/chenyun/home"));
const ChenyunPlace1 = lazy(() => import("@/pages/chenyun/place/place1"));
const ChenyunPlace2 = lazy(() => import("@/pages/chenyun/place/place2"));
const ChenyunPlace3 = lazy(() => import("@/pages/chenyun/place/place3"));
const ChenyunPlace4 = lazy(() => import("@/pages/chenyun/place/place4"));
const ChenyunPlace5 = lazy(() => import("@/pages/chenyun/place/place5"));
const ChenyunPlace6 = lazy(() => import("@/pages/chenyun/place/place6"));
const ChenyunPlace7 = lazy(() => import("@/pages/chenyun/place/place7"));
const ChenyunPlace8 = lazy(() => import("@/pages/chenyun/place/place8"));
const ChenyunPlace9 = lazy(() => import("@/pages/chenyun/place/place9"));
const ChenyunReflection = lazy(() => import("@/pages/chenyun/reflection"));
const ChenyunInternalization = lazy(
() => import("@/pages/chenyun/internalization")
);
//陈云 router
// 路径格式:/:moduleName/chenyun/:page
export const ChenyunRoutes: RouteObject[] = [
{
path: "/:moduleName/chenyun",
element: <ResidenceLayout />,
children: [
{
index: true,
element: <HomePage />,
handle: {
videoSrc: "video/chenyun/lukou.mp4",
},
},
{
path: "home",
element: <HomePage />,
handle: {
videoSrc: "video/chenyun/chenyun_lukou.mp4",
},
},
{
path: "place1",
element: <ChenyunPlace1 />,
handle: {
videoSrc: "video/chenyun/chenyun_01.mp4",
},
},
{
path: "place2",
element: <ChenyunPlace2 />,
handle: {
videoSrc: "video/chenyun/cunyun_02.mp4",
},
},
{
path: "place3",
element: <ChenyunPlace3 />,
handle: {
videoSrc: "video/chenyun/chenyun_03.mp4",
},
},
{
path: "place4",
element: <ChenyunPlace4 />,
handle: {
videoSrc: "video/chenyun/chenyun_05.mp4",
},
},
{
path: "place5",
element: <ChenyunPlace5 />,
handle: {
videoSrc: "video/chenyun/chenyun_06.mp4",
},
},
{
path: "place6",
element: <ChenyunPlace6 />,
handle: {
videoSrc: "video/chenyun/chenyun_08.mp4",
},
},
{
path: "place7",
element: <ChenyunPlace7 />,
handle: {
videoSrc: "video/chenyun/chenyun_09.mp4",
},
},
{
path: "place8",
element: <ChenyunPlace8 />,
handle: {
videoSrc: "video/chenyun/chenyun_12.mp4",
},
},
{
path: "place9",
element: <ChenyunPlace9 />,
handle: {
videoSrc: "video/chenyun/chenyun_13.mp4",
},
},
{
path: "reflection",
element: <ChenyunReflection />,
},
{
path: "internalization",
element: <ChenyunInternalization />,
// handle: {
// videoSrc: "video/chenyun/chenyun_neihua.mp4",
// },
},
],
},
];