export default [ { path: '/user', layout: false, routes: [ { name: 'login', path: '/user/login', component: './user/login' } ] }, { path: '/', redirect: '/workbench' }, { path: '/workbench', name: 'workbench', icon: 'icon-chess', routes: [ { path: '/workbench', redirect: '/workbench/dashboard' }, { path: '/workbench/dashboard', name: 'dashboard', icon: 'icon-tachometer-alt', component: './Workbench/Dashboard', access: 'authPermDataFilter' } ] }, { path: '/customer', name: 'customer', icon: 'icon-address-book-o', routes: [ { path: '/customer', redirect: '/customer/client' }, { path: '/customer/client', name: 'client', icon: 'icon-address-book', component: './Customer/Client', access: 'authRouteFilter', validatePerm: true }, { path: '/customer/company', name: 'company', icon: 'icon-building', component: './Customer/Company', access: 'authRouteFilter', validatePerm: true }, { path: '/customer/business', name: 'business', icon: 'icon-usd-circle', component: './Customer/Business', access: 'authRouteFilter', validatePerm: true } // { // path: '/customer/test', // name: 'test', // icon: 'icon-usd-circle', // component: './Customer/Test' // } ] }, { path: '/product', name: 'product', icon: 'icon-box', routes: [ { path: '/product', redirect: '/product/lock' }, { path: '/product/lock', name: 'lock', icon: 'icon-magic', routes: [ { path: '/product/lock', redirect: '/product/lock/lockstore' }, { path: '/product/lock/lockstore', name: 'lockstore', component: './Product/Lock/LockStore', access: 'authRouteFilter', validatePerm: true } // { // path: '/product/lock/lockcount', // name: 'lockcount', // component: './Product/Lock/LockCount' // } ] }, { path: '/product/cloud', name: 'cloud', icon: 'icon-cloud', routes: [ { path: '/product/cloud', redirect: '/product/cloud/building' }, { path: '/product/cloud/building', name: 'build', component: './Product/Cloud' }, { path: '/product/cloud/curing', name: 'curing', component: './Product/Cloud' }, { path: '/product/cloud/highway', name: 'highway', component: './Product/Cloud' }, { path: '/product/cloud/gs', name: 'gs', component: './Product/Cloud' } ] } ] }, { path: '/hr', name: 'hr', icon: 'icon-users', routes: [ { path: '/hr', redirect: '/hr/employee' }, { path: '/hr/employee', name: 'employee', icon: 'icon-users', component: './Hr/Employee', access: 'authRouteFilter' } ] }, { component: './404' } ]