From db6ab6fab7847704436fa1bfef0e34d899d308cd Mon Sep 17 00:00:00 2001 From: wang_yp <357754663@qq.com> Date: Mon, 17 Mar 2025 13:55:29 +0800 Subject: [PATCH] fix(staff) --- src/components/layout/layout_config.tsx | 6 ++++++ src/pages/city/index.tsx | 5 +++++ src/router/index.tsx | 7 +++++++ 3 files changed, 18 insertions(+) create mode 100644 src/pages/city/index.tsx diff --git a/src/components/layout/layout_config.tsx b/src/components/layout/layout_config.tsx index f3a40f0..09ae1a2 100644 --- a/src/components/layout/layout_config.tsx +++ b/src/components/layout/layout_config.tsx @@ -19,6 +19,12 @@ export const items: ItemType[] = [ icon: , children: [{ key: "/user/list", label: `用户管理` }], }, + { + key: "/city", + label: `城市管理`, + icon: , + children: [{ key: "/city/list", label: `城市管理` }], + }, { key: "/sku", label: `商品管理`, diff --git a/src/pages/city/index.tsx b/src/pages/city/index.tsx new file mode 100644 index 0000000..8a00829 --- /dev/null +++ b/src/pages/city/index.tsx @@ -0,0 +1,5 @@ +const City = () => { + return
City
; +}; + +export default City; diff --git a/src/router/index.tsx b/src/router/index.tsx index b5d7c16..d35d223 100644 --- a/src/router/index.tsx +++ b/src/router/index.tsx @@ -31,6 +31,13 @@ const routers = createHashRouter([ Component:(await import("@/pages/order")).default, }) }, + { + path: "/city/list", + index: true, + lazy: async() => ({ + Component:(await import("@/pages/city")).default, + }) + }, ], }, {