fix(im)
This commit is contained in:
parent
a2f288073e
commit
4d38b3122b
|
@ -30,6 +30,16 @@ export const items: ItemType<MenuItemType>[] = [
|
||||||
{ key: "/city/food", label: `地方美食` },
|
{ key: "/city/food", label: `地方美食` },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: "/charity",
|
||||||
|
label: `公益管理`,
|
||||||
|
icon: <UserOutlined />,
|
||||||
|
children: [
|
||||||
|
{ key: "/charity/setting", label: `公益设置` },
|
||||||
|
{ key: "/charity/af", label: `求助申请` },
|
||||||
|
{ key: "/charity/artic", label: `公益文章` },
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: "/sku",
|
key: "/sku",
|
||||||
label: `商品管理`,
|
label: `商品管理`,
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
const Setting = ()=>{
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
Setting
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
export default Setting
|
|
@ -0,0 +1,8 @@
|
||||||
|
const Setting = ()=>{
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
Setting
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
export default Setting
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { Outlet } from "react-router";
|
||||||
|
|
||||||
|
const Charity = () => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<Outlet />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Charity;
|
|
@ -0,0 +1,8 @@
|
||||||
|
const Setting = ()=>{
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
Setting
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
export default Setting
|
|
@ -1,9 +1,10 @@
|
||||||
import { createHashRouter } from "react-router-dom";
|
import { createHashRouter } from "react-router-dom";
|
||||||
import LayOut from "@/components/layout/layout";
|
import LayOut from "@/components/layout/layout";
|
||||||
import { rbac } from "./routers/rbac_router";
|
import { rbac } from "@/router/routers/rbac_router";
|
||||||
import { sku } from "./routers/sku_router";
|
import { sku } from "@/router/routers/sku_router";
|
||||||
import { sys } from "./routers/sys_router";
|
import { sys } from "@/router/routers/sys_router";
|
||||||
import { city } from "./routers/city_router";
|
import { city } from "@/router/routers/city_router";
|
||||||
|
import { charity } from "@/router/routers/charity";
|
||||||
|
|
||||||
const routers = createHashRouter([
|
const routers = createHashRouter([
|
||||||
{
|
{
|
||||||
|
@ -35,7 +36,10 @@ const routers = createHashRouter([
|
||||||
Component:(await import("@/pages/order")).default,
|
Component:(await import("@/pages/order")).default,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
...charity,
|
||||||
|
// { key: "/charity/setting", label: `公益设置` },
|
||||||
|
// { key: "/charity/af", label: `求助申请` },
|
||||||
|
// { key: "/charity/artic", label: `公益文章` },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
export const charity = [
|
||||||
|
{
|
||||||
|
path: "/charity",
|
||||||
|
lazy: async () => ({
|
||||||
|
Component: (await import("@/pages/charity")).default,
|
||||||
|
}),
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: "/charity/setting",
|
||||||
|
index: true,
|
||||||
|
lazy: async () => ({
|
||||||
|
Component: (await import("@/pages/charity/setting")).default,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/charity/af",
|
||||||
|
index: true,
|
||||||
|
lazy: async () => ({
|
||||||
|
Component: (await import("@/pages/charity/af")).default,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/charity/artic",
|
||||||
|
index: true,
|
||||||
|
lazy: async () => ({
|
||||||
|
Component: (await import("@/pages/charity/artic")).default,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
|
@ -6,7 +6,6 @@ class UserConfig {
|
||||||
static DELETE: string = "/user";
|
static DELETE: string = "/user";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class CityConfig {
|
class CityConfig {
|
||||||
static ADD: string = "/city";
|
static ADD: string = "/city";
|
||||||
static EDIT: string = "/city";
|
static EDIT: string = "/city";
|
||||||
|
@ -69,4 +68,15 @@ class SpecConfig {
|
||||||
static LIST: string = "/skuSpec/list";
|
static LIST: string = "/skuSpec/list";
|
||||||
static DELETE: string = "/skuSpec";
|
static DELETE: string = "/skuSpec";
|
||||||
}
|
}
|
||||||
export { UserConfig, CityConfig, SkuCatConfig, SkuConfig, Orderconfig, TagConfig, SpecConfig, CityHistoryConfig, CityHumIntroConfig, CityLocalFoodConfig };
|
export {
|
||||||
|
UserConfig,
|
||||||
|
CityConfig,
|
||||||
|
SkuCatConfig,
|
||||||
|
SkuConfig,
|
||||||
|
Orderconfig,
|
||||||
|
TagConfig,
|
||||||
|
SpecConfig,
|
||||||
|
CityHistoryConfig,
|
||||||
|
CityHumIntroConfig,
|
||||||
|
CityLocalFoodConfig
|
||||||
|
};
|
Loading…
Reference in New Issue