fix(staff)

This commit is contained in:
wang_yp 2025-03-17 13:55:29 +08:00
parent 0202c68fe0
commit db6ab6fab7
3 changed files with 18 additions and 0 deletions

View File

@ -19,6 +19,12 @@ export const items: ItemType<MenuItemType>[] = [
icon: <UserOutlined />, icon: <UserOutlined />,
children: [{ key: "/user/list", label: `用户管理` }], children: [{ key: "/user/list", label: `用户管理` }],
}, },
{
key: "/city",
label: `城市管理`,
icon: <UserOutlined />,
children: [{ key: "/city/list", label: `城市管理` }],
},
{ {
key: "/sku", key: "/sku",
label: `商品管理`, label: `商品管理`,

5
src/pages/city/index.tsx Normal file
View File

@ -0,0 +1,5 @@
const City = () => {
return <div>City</div>;
};
export default City;

View File

@ -31,6 +31,13 @@ const routers = createHashRouter([
Component:(await import("@/pages/order")).default, Component:(await import("@/pages/order")).default,
}) })
}, },
{
path: "/city/list",
index: true,
lazy: async() => ({
Component:(await import("@/pages/city")).default,
})
},
], ],
}, },
{ {