From f7b17684dfcd35c8919f20ac330870ef4c37bc1b Mon Sep 17 00:00:00 2001 From: wang_yp <357754663@qq.com> Date: Sun, 23 Mar 2025 16:28:15 +0800 Subject: [PATCH] fix(staff) --- src/components/layout/layout_config.tsx | 1 - src/pages/sys/don/index.tsx | 10 +++++++ src/pages/sys/index.tsx | 11 +++++++ src/pages/sys/keywod/index.tsx | 10 +++++++ src/pages/sys/notic/index.tsx | 10 +++++++ src/pages/sys/version/index.tsx | 10 +++++++ src/router/index.tsx | 2 ++ src/router/routers/sys_router.tsx | 39 +++++++++++++++++++++++++ 8 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 src/pages/sys/don/index.tsx create mode 100644 src/pages/sys/index.tsx create mode 100644 src/pages/sys/keywod/index.tsx create mode 100644 src/pages/sys/notic/index.tsx create mode 100644 src/pages/sys/version/index.tsx create mode 100644 src/router/routers/sys_router.tsx diff --git a/src/components/layout/layout_config.tsx b/src/components/layout/layout_config.tsx index 059437a..f1cfdec 100644 --- a/src/components/layout/layout_config.tsx +++ b/src/components/layout/layout_config.tsx @@ -60,7 +60,6 @@ export const items: ItemType[] = [ label: `系统管理`, icon: , children: [ - { label: `部门管理`, key: "/sys/dep" }, { label: `数据字典`, key: "/sys/keywod" }, { label: `版本管理`, key: "/sys/version" }, { label: `捐赠管理`, key: "/sys/don" }, diff --git a/src/pages/sys/don/index.tsx b/src/pages/sys/don/index.tsx new file mode 100644 index 0000000..6b5fe8f --- /dev/null +++ b/src/pages/sys/don/index.tsx @@ -0,0 +1,10 @@ +const Don = () => { + return ( +
+ cat +
+ ); + }; + + export default Don; + \ No newline at end of file diff --git a/src/pages/sys/index.tsx b/src/pages/sys/index.tsx new file mode 100644 index 0000000..c2e5930 --- /dev/null +++ b/src/pages/sys/index.tsx @@ -0,0 +1,11 @@ +import { Outlet } from "react-router"; + +const Sys = () => { + return ( +
+ +
+ ); +}; + +export default Sys; diff --git a/src/pages/sys/keywod/index.tsx b/src/pages/sys/keywod/index.tsx new file mode 100644 index 0000000..f2d938e --- /dev/null +++ b/src/pages/sys/keywod/index.tsx @@ -0,0 +1,10 @@ +const KeyWod = () => { + return ( +
+ cat +
+ ); + }; + + export default KeyWod; + \ No newline at end of file diff --git a/src/pages/sys/notic/index.tsx b/src/pages/sys/notic/index.tsx new file mode 100644 index 0000000..25f2234 --- /dev/null +++ b/src/pages/sys/notic/index.tsx @@ -0,0 +1,10 @@ +const Notic = () => { + return ( +
+ cat +
+ ); + }; + + export default Notic; + \ No newline at end of file diff --git a/src/pages/sys/version/index.tsx b/src/pages/sys/version/index.tsx new file mode 100644 index 0000000..e2e4566 --- /dev/null +++ b/src/pages/sys/version/index.tsx @@ -0,0 +1,10 @@ +const Version = () => { + return ( +
+ cat +
+ ); + }; + + export default Version; + \ No newline at end of file diff --git a/src/router/index.tsx b/src/router/index.tsx index d35d223..fd6f624 100644 --- a/src/router/index.tsx +++ b/src/router/index.tsx @@ -2,6 +2,7 @@ import { createHashRouter } from "react-router-dom"; import LayOut from "@/components/layout/layout"; import { rbac } from "./routers/rbac_router"; import { sku } from "./routers/sku_router"; +import { sys } from "./routers/sys_router"; const routers = createHashRouter([ { @@ -24,6 +25,7 @@ const routers = createHashRouter([ }, ...rbac, ...sku, + ...sys, { path: "/order/list", index: true, diff --git a/src/router/routers/sys_router.tsx b/src/router/routers/sys_router.tsx new file mode 100644 index 0000000..d0363ad --- /dev/null +++ b/src/router/routers/sys_router.tsx @@ -0,0 +1,39 @@ +export const sys = [ + { + path: "/sys", + lazy: async () => ({ + Component: (await import("@/pages/sys")).default, + }), + children: [ + { + path: "/sys/don", + index: true, + lazy: async () => ({ + Component: (await import("@/pages/sys/don")).default, + }), + }, + { + path: "/sys/keywod", + index: true, + lazy: async () => ({ + Component: (await import("@/pages/sys/keywod")).default, + }), + }, + { + path: "/sys/notic", + index: true, + lazy: async () => ({ + Component: (await import("@/pages/sys/notic")).default, + }), + }, + { + path: "/sys/version", + index: true, + lazy: async () => ({ + Component: (await import("@/pages/sys/version")).default, + }), + }, + + ], + }, +];