|
|
@@ -14,6 +14,7 @@ module.exports = [
|
|
|
{
|
|
|
path: '/',
|
|
|
component: '../layouts/BasicLayout',
|
|
|
+ Routes: ['src/pages/Authorized'],
|
|
|
routes: [
|
|
|
// dashboard
|
|
|
{ path: '/', redirect: '/dashboard/analysis' },
|
|
|
@@ -22,7 +23,12 @@ module.exports = [
|
|
|
name: 'dashboard',
|
|
|
icon: 'dashboard',
|
|
|
routes: [
|
|
|
- { path: '/dashboard/analysis', name: 'analysis', component: './Dashboard/Analysis' },
|
|
|
+ {
|
|
|
+ path: '/dashboard/analysis',
|
|
|
+ authority: ['admin'],
|
|
|
+ name: 'analysis',
|
|
|
+ component: './Dashboard/Analysis',
|
|
|
+ },
|
|
|
{ path: '/dashboard/monitor', name: 'monitor', component: './Dashboard/Monitor' },
|
|
|
{ path: '/dashboard/workplace', name: 'workplace', component: './Dashboard/Workplace' },
|
|
|
],
|