export default [ { path: '/user', component: '../layouts/UserLayout', routes: [ { name: 'login', path: '/user/login', component: './user/login' } ] }, { path: '/', component: '../layouts/SecurityLayout', routes: [ { path: '/', component: '../layouts/BasicLayout', authority: ['admin', 'user'], routes: [ // { // path: '/', // redirect: '/welcome', // }, // { // path: '/welcome', // name: 'welcome', // (icon: 'smile'), // component: './Welcome', // }, { path: '/workbench', name: 'workbench', icon: 'table-lamp', routes: [ { path: '/workbench/workbench', name: 'workbench', icon: 'list', component: './Workbench/workbench' } ] }, { path: '/customer', name: 'customer', icon: 'address-book', routes: [ { path: '/customer/contact', name: 'contact', icon: 'user-business', component: './Customer/Contact' }, { path: '/customer/company', name: 'company', icon: 'city', component: './Customer/Company' }, { path: '/customer/finance', name: 'finance', icon: 'finance', component: './Customer/Finance' }, { path: '/customer/test', name: 'test', icon: 'alarm', component: './Customer/Test' } ] }, { path: '/product', name: 'product', icon: 'ad-product', routes: [ { path: '/product/lock', name: 'lock', icon: 'disk-one', routes: [ { path: '/product/lock/lockstore', name: 'lockstore', component: './Product/Lock/Lockstore' }, { path: '/product/lock/lockcount', name: 'lockcount', component: './Product/Lock/Lockcount' } ] }, { path: '/product/cloud', name: 'cloud', icon: 'network-drive', routes: [ { path: '/product/cloud/building', name: 'build', component: './Product/Cloud/Building' }, { path: '/product/cloud/curing', name: 'curing', component: './Product/Cloud/Curing' } ] } ] } // { // path: '/admin', // name: 'admin', // icon: 'crown', // component: './Admin', // authority: ['admin'], // routes: [ // { // path: '/admin/sub-page', // name: 'sub-page', // icon: 'smile', // component: './Welcome', // authority: ['admin'], // }, // ], // }, // { // name: 'list.table-list', // icon: 'table', // path: '/list', // component: './ListTableList', // }, // { // component: './404', // }, ] }, { component: './404' } ] }, { component: './404' } ]