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: '/channel', }, // { // path: '/welcome', // name: '首页', // component: './Welcome', // }, { path: '/channel', name: '渠道列表', component: './channel', }, { path: '/channel/edit', name: '渠道列表', hideInMenu: true, component: './channel/edit', }, { path: '/sample', name: 'H5样例管理', component: '../layouts/BlankLayout', routes: [ { path: '/sample/h5/list', name: 'H5样例', component: './sample/h5/index', }, { path: '/sample/demand/list', name: 'H5需求单', component: './sample/demand/index', }, { path: '/sample/demand/edit', name: 'H5需求单详情', hideInMenu: true, component: './sample/demand/edit', }, ], }, { path: '/resource', name: '资源管理', component: './resource', }, { component: './404', }, ], }, { component: './404', }, ], }, { component: './404', }, ];