fix: page showInMenu=true
This commit is contained in:
parent
b6bce5a2dc
commit
a3107721c2
@ -52,6 +52,7 @@ const data = {
|
|||||||
icon: 'DashboardOutlined',
|
icon: 'DashboardOutlined',
|
||||||
template: 'page1',
|
template: 'page1',
|
||||||
sort: 20,
|
sort: 20,
|
||||||
|
showInMenu: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '数据',
|
title: '数据',
|
||||||
@ -60,6 +61,7 @@ const data = {
|
|||||||
icon: 'DatabaseOutlined',
|
icon: 'DatabaseOutlined',
|
||||||
template: 'SideMenuLayout',
|
template: 'SideMenuLayout',
|
||||||
sort: 30,
|
sort: 30,
|
||||||
|
showInMenu: true,
|
||||||
children: [
|
children: [
|
||||||
// {
|
// {
|
||||||
// title: '页面3',
|
// title: '页面3',
|
||||||
@ -86,6 +88,7 @@ const data = {
|
|||||||
icon: 'TeamOutlined',
|
icon: 'TeamOutlined',
|
||||||
template: 'SideMenuLayout',
|
template: 'SideMenuLayout',
|
||||||
sort: 70,
|
sort: 70,
|
||||||
|
showInMenu: true,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
title: '用户管理',
|
title: '用户管理',
|
||||||
@ -95,6 +98,7 @@ const data = {
|
|||||||
template: 'collection',
|
template: 'collection',
|
||||||
collection: 'users',
|
collection: 'users',
|
||||||
sort: 80,
|
sort: 80,
|
||||||
|
showInMenu: true,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -105,6 +109,7 @@ const data = {
|
|||||||
icon: 'SettingOutlined',
|
icon: 'SettingOutlined',
|
||||||
template: 'SideMenuLayout',
|
template: 'SideMenuLayout',
|
||||||
sort: 90,
|
sort: 90,
|
||||||
|
showInMenu: true,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
title: '页面与菜单',
|
title: '页面与菜单',
|
||||||
@ -114,6 +119,7 @@ const data = {
|
|||||||
icon: 'MenuOutlined',
|
icon: 'MenuOutlined',
|
||||||
sort: 100,
|
sort: 100,
|
||||||
developerMode: true,
|
developerMode: true,
|
||||||
|
showInMenu: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '数据表配置',
|
title: '数据表配置',
|
||||||
@ -122,6 +128,7 @@ const data = {
|
|||||||
path: '/settings/collections',
|
path: '/settings/collections',
|
||||||
icon: 'TableOutlined',
|
icon: 'TableOutlined',
|
||||||
sort: 110,
|
sort: 110,
|
||||||
|
showInMenu: true,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -20,7 +20,7 @@ export default (props: any) => {
|
|||||||
defaultOpenKeys={paths.filter(path => pathcamp(location.pathname, path)).concat(location.pathname)}
|
defaultOpenKeys={paths.filter(path => pathcamp(location.pathname, path)).concat(location.pathname)}
|
||||||
{...restProps}
|
{...restProps}
|
||||||
>
|
>
|
||||||
{items.map(item => (
|
{items.map(item => item.showInMenu && (
|
||||||
<Menu.Item key={item.path}>
|
<Menu.Item key={item.path}>
|
||||||
<Link to={item.path}><Icon type={item.icon}/> {item.title}</Link>
|
<Link to={item.path}><Icon type={item.icon}/> {item.title}</Link>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
|
Loading…
Reference in New Issue
Block a user