|
|
@ -1,64 +1,70 @@ |
|
|
export default [ |
|
|
export default [ |
|
|
{ |
|
|
{ |
|
|
path: '/user', |
|
|
path: '/', |
|
|
component: '../layouts/UserLayout', |
|
|
component: '../layouts/BlankLayout', |
|
|
routes: [ |
|
|
routes: [ |
|
|
{ |
|
|
{ |
|
|
name: 'login', |
|
|
path: '/user', |
|
|
path: '/user/login', |
|
|
component: '../layouts/UserLayout', |
|
|
component: './user/login', |
|
|
routes: [ |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'login', |
|
|
|
|
|
path: '/user/login', |
|
|
|
|
|
component: './user/login', |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
}, |
|
|
}, |
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/', |
|
|
|
|
|
component: '../layouts/SecurityLayout', |
|
|
|
|
|
routes: [ |
|
|
|
|
|
{ |
|
|
{ |
|
|
path: '/', |
|
|
path: '/', |
|
|
component: '../layouts/BasicLayout', |
|
|
component: '../layouts/SecurityLayout', |
|
|
authority: ['admin', 'user'], |
|
|
|
|
|
routes: [ |
|
|
routes: [ |
|
|
{ |
|
|
{ |
|
|
path: '/', |
|
|
path: '/', |
|
|
redirect: '/welcome', |
|
|
component: '../layouts/BasicLayout', |
|
|
}, |
|
|
authority: ['admin', 'user'], |
|
|
{ |
|
|
|
|
|
path: '/welcome', |
|
|
|
|
|
name: 'welcome', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
component: './Welcome', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/admin', |
|
|
|
|
|
name: 'admin', |
|
|
|
|
|
icon: 'crown', |
|
|
|
|
|
component: './Admin', |
|
|
|
|
|
authority: ['admin'], |
|
|
|
|
|
routes: [ |
|
|
routes: [ |
|
|
{ |
|
|
{ |
|
|
path: '/admin/sub-page', |
|
|
path: '/', |
|
|
name: 'sub-page', |
|
|
redirect: '/welcome', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/welcome', |
|
|
|
|
|
name: 'welcome', |
|
|
icon: 'smile', |
|
|
icon: 'smile', |
|
|
component: './Welcome', |
|
|
component: './Welcome', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/admin', |
|
|
|
|
|
name: 'admin', |
|
|
|
|
|
icon: 'crown', |
|
|
|
|
|
component: './Admin', |
|
|
authority: ['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', |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
name: 'list.table-list', |
|
|
|
|
|
icon: 'table', |
|
|
|
|
|
path: '/list', |
|
|
|
|
|
component: './ListTableList', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
component: './404', |
|
|
component: './404', |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
component: './404', |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
|