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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
| import Layout from '@/layouts'
| /**
| * icon
| * home: 首页
| * alarm: 报警
| * car: 车辆
| * company: 公司
| * complaint: 投诉
| * sys: 系统
| * order: 订单
| *
| * hide: true, // 是否隐藏
| *
| */
|
| export default [
| {
| path: '/',
| component: () => import('@/view/login'),
| },
| {
| path: '/home',
| component: Layout,
| children: [
| {
| path: '/home',
| component: () => import('@/view/home'),
| meta: {
| title: '首页',
| icon: 'home'
| }
| },
| ]
| },
| {
| path: '/early-warning',
| component: Layout,
| children: [
| {
| path: '/early-warning',
| component: () => import('@/view/early-warning'),
| meta: {
| title: '报警记录',
| icon: 'alarm'
| }
| }
| ]
| },
| {
| path: '/complaint',
| component: Layout,
| children: [
| {
| path: '/complaint',
| component: () => import('@/view/complaint/index'),
| meta: {
| title: '投诉记录',
| icon: 'complaint'
| }
| }
| ]
| }
|
| ]
|
|