3 changed files with 79 additions and 73 deletions
@ -0,0 +1,67 @@ |
|||
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: '/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', |
|||
}, |
|||
]; |
|||
Loading…
Reference in new issue