1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| import { DEFAULT_LAYOUT } from '../base';
| import { AppRouteRecordRaw } from '../types';
|
| const DASHBOARD: AppRouteRecordRaw = {
| path: '/dashboard',
| name: 'dashboard',
| component: DEFAULT_LAYOUT,
| meta: {
| locale: 'menu.dashboard',
| requiresAuth: true,
| icon: 'icon-dashboard',
| order: 0,
| },
| children: [
| {
| path: 'workplace',
| name: 'Workplace',
| component: () => import('@/views/dashboard/workplace/index.vue'),
| meta: {
| locale: 'menu.dashboard.workplace',
| requiresAuth: true,
| roles: ['*'],
| },
| },
|
| {
| path: 'monitor',
| name: 'Monitor',
| component: () => import('@/views/dashboard/monitor/index.vue'),
| meta: {
| locale: 'menu.dashboard.monitor',
| requiresAuth: true,
| roles: ['admin'],
| },
| },
| ],
| };
|
| export default DASHBOARD;
|
|