/*路由表：系统管理*/
import Layout from '@/layout'
import {lazyLoadView} from "@/router/util"

const router = {
    path: '/system',
    component: Layout,
    alwaysShow: true,
    meta: {title: '系统管理', icon: 'system'},
    children: [
        {
            path: 'department',
            name: 'departmentManagement',
            component: () => lazyLoadView(import('@/views/system/department')),
            meta: {title: '部门管理'}
        },
        {
            path: 'role',
            name: 'roleManagement',
            component: () => lazyLoadView(import('@/views/system/role')),
            meta: {title: '角色管理'}
        },
        {
            path: 'user',
            name: 'userManagement',
            component: () => lazyLoadView(import('@/views/system/user')),
            meta: {title: '用户管理'}
        },
        {
            path: 'category',
            name: 'categorySetting',
            component: () => lazyLoadView(import('@/views/system/category')),
            meta: {title: '商品分类'}
        },
        {
            path: 'customer',
            name: 'customerManagement',
            component: () => lazyLoadView(import('@/views/system/customer')),
            meta: {title: '客户管理'}
        },
        {
            path: 'supplier',
            name: 'supplierManagement',
            component: () => lazyLoadView(import('@/views/system/supplier')),
            meta: {title: '供应商管理'}
        },
        {
            path: 'resource',
            name: 'resourceManagement',
            component: () => lazyLoadView(import('@/views/system/resource')),
            hidden: true,
            meta: {title: '接口设置'}
        }
    ]
}

export default router
