// config/
export default [
{
path: '/',
menu: {
flatMenu: true, //当不需要展示自己,只展示 children,可以在路由上配置 flatMenu;
},
routes: [
{
path: '/',
redirect: '/operate/user/user-management-outside',
},
{
path: '/operate',
name: '运营后台',
icon: 'smile',
routes: [
{
path: '/operate',
redirect: '/operate/user/user-management-outside',// 路由重定向,解决点击一级菜单页面显示空白的问题
},
{
path: 'user',
name: '用户管理',
icon: 'icon-yonghuguanli',
routes: [
{
path: 'user-management-outside',
name: '企业用户管理',
component: './user/management',
exact: true,
},
{
path: 'approve',
name: '认证审核',
component: './approve',
access: 'normalRouteFilter'
},
],
},
// 继续添加子菜单
],
},
{
path: '/nft',
name: 'NFT',
icon: 'smile',
routes: [
{
path: '/nft',
redirect: '/nft/nft-marketing', // 路由重定向,解决点击一级菜单页面显示空白的问题
},
{
path: 'nft-marketing',
name: '营销管理',
icon: 'icon-yingxiao',
component: './nft/nftMarketing/index',
exact: true,
}
],
},
// 添加顶部导航以及该顶部导航下对应的子菜单
]
},
];