You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
2.4 KiB
TypeScript
120 lines
2.4 KiB
TypeScript
export default [
|
|
{
|
|
path: '/user',
|
|
layout: false,
|
|
routes: [{ name: '登录', path: '/user/login', component: './User/Login' }],
|
|
},
|
|
{ path: '/dashboard', access: 'dashboardQuery', name: '仪表盘', icon: 'home', component: './Dashboard' },
|
|
{
|
|
name: '用户管理',
|
|
path: '/user-list',
|
|
icon: 'user',
|
|
access: 'userQuery',
|
|
component: './UserList',
|
|
},
|
|
{
|
|
name: '角色管理',
|
|
path: '/role-list',
|
|
icon: 'bell',
|
|
access: 'roleQuery',
|
|
component: './RoleList',
|
|
},
|
|
{
|
|
name: '审核管理',
|
|
path: '/audits',
|
|
icon: 'verified',
|
|
access: 'approvalQuery',
|
|
routes: [
|
|
{
|
|
path: '',
|
|
component: './AuditsList',
|
|
},
|
|
{
|
|
name: '详情',
|
|
path: 'detail/:id',
|
|
hideInMenu: true,
|
|
component: './AuditsList/detail',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: '商家管理',
|
|
path: '/business',
|
|
icon: 'shop',
|
|
access: 'businessQuery',
|
|
routes: [
|
|
{
|
|
path: '',
|
|
component: './BusinessList',
|
|
},
|
|
{
|
|
name: '详情',
|
|
path: 'detail/:id',
|
|
hideInMenu: true,
|
|
component: './BusinessList/detail',
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '会员管理',
|
|
path: '/member',
|
|
icon: 'team',
|
|
routes: [
|
|
{
|
|
name: '会员管理',
|
|
path: 'list',
|
|
access: 'memberQuery',
|
|
component: './MemberList',
|
|
},
|
|
{
|
|
name: '会员等级',
|
|
path: 'grade',
|
|
access: 'memberGradeQuery',
|
|
component: './MemberList/grade',
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '商品管理',
|
|
path: '/product',
|
|
icon: 'book',
|
|
routes: [
|
|
{
|
|
name: '商品类目管理',
|
|
path: 'category',
|
|
access: 'productCategoryQuery',
|
|
component: './ProductList/category',
|
|
},
|
|
{
|
|
name: '商品管理',
|
|
path: 'list',
|
|
access: 'productQuery',
|
|
component: './ProductList',
|
|
},
|
|
{
|
|
name: '详情',
|
|
path: 'detail/:id',
|
|
access: 'productCategoryQuery',
|
|
hideInMenu: true,
|
|
component: './ProductList/detail',
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '内容管理',
|
|
path: '/content-list',
|
|
icon: 'folder',
|
|
access: 'contentQuery',
|
|
component: './ContentList',
|
|
},
|
|
{
|
|
name: '留言管理',
|
|
path: '/message-list',
|
|
icon: 'message',
|
|
access: 'messageQuery',
|
|
component: './MessageList',
|
|
},
|
|
{ path: '/' },
|
|
{ path: '*', layout: false, component: './404' },
|
|
];
|