|
|
@ -21,9 +21,10 @@ export default [ |
|
|
{ |
|
|
{ |
|
|
path: '/', |
|
|
path: '/', |
|
|
component: '../layouts/BasicLayout', |
|
|
component: '../layouts/BasicLayout', |
|
|
|
|
|
Routes: ['src/pages/Authorized'], |
|
|
routes: [ |
|
|
routes: [ |
|
|
// dashboard
|
|
|
// dashboard
|
|
|
{ path: '/', redirect: '/dashboard/analysis' }, |
|
|
{ path: '/', redirect: '/dashboard/analysis', authority: ['admin', 'user'] }, |
|
|
{ |
|
|
{ |
|
|
path: '/dashboard', |
|
|
path: '/dashboard', |
|
|
name: 'dashboard', |
|
|
name: 'dashboard', |
|
|
@ -87,6 +88,7 @@ export default [ |
|
|
{ |
|
|
{ |
|
|
path: '/form/advanced-form', |
|
|
path: '/form/advanced-form', |
|
|
name: 'advancedform', |
|
|
name: 'advancedform', |
|
|
|
|
|
authority: ['admin'], |
|
|
component: './Forms/AdvancedForm', |
|
|
component: './Forms/AdvancedForm', |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
@ -160,6 +162,7 @@ export default [ |
|
|
{ |
|
|
{ |
|
|
path: '/profile/advanced', |
|
|
path: '/profile/advanced', |
|
|
name: 'advanced', |
|
|
name: 'advanced', |
|
|
|
|
|
authority: ['admin'], |
|
|
component: './Profile/AdvancedProfile', |
|
|
component: './Profile/AdvancedProfile', |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
|