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, + }) + }, ], }, {