|
@@ -21,6 +21,7 @@ import Layout from '../views/layout/Layout'
|
21
|
21
|
export const constantRouterMap = [
|
22
|
22
|
{ path: '/login', component: _import('login/index'), hidden: true },
|
23
|
23
|
{ path: '/404', component: _import('404'), hidden: true },
|
|
24
|
+
|
24
|
25
|
{
|
25
|
26
|
path: '/',
|
26
|
27
|
component: Layout,
|
|
@@ -29,36 +30,42 @@ export const constantRouterMap = [
|
29
|
30
|
hidden: true,
|
30
|
31
|
children: [{
|
31
|
32
|
path: 'dashboard',
|
32
|
|
- component: _import('dashboard/index'),
|
33
|
|
- meta: { title: 'dashboard', icon: 'dashboard' }
|
|
33
|
+ component: _import('dashboard/index')
|
34
|
34
|
}]
|
35
|
35
|
},
|
36
|
36
|
|
37
|
37
|
{
|
38
|
38
|
path: '/example',
|
39
|
39
|
component: Layout,
|
40
|
|
- redirect: 'noredirect',
|
|
40
|
+ redirect: '/example/table',
|
41
|
41
|
name: 'Example',
|
42
|
42
|
meta: { title: 'Example', icon: 'example' },
|
43
|
43
|
children: [
|
44
|
44
|
{
|
45
|
|
- path: 'index',
|
46
|
|
- name: 'Form',
|
47
|
|
- component: _import('page/form'),
|
48
|
|
- meta: { title: 'Form', icon: 'form' }
|
|
45
|
+ path: 'table',
|
|
46
|
+ name: 'Table',
|
|
47
|
+ component: _import('table/index'),
|
|
48
|
+ meta: { title: 'Table', icon: 'table' }
|
|
49
|
+ },
|
|
50
|
+ {
|
|
51
|
+ path: 'tree',
|
|
52
|
+ name: 'Tree',
|
|
53
|
+ component: _import('tree/index'),
|
|
54
|
+ meta: { title: 'Tree', icon: 'tree' }
|
49
|
55
|
}
|
50
|
56
|
]
|
51
|
57
|
},
|
52
|
58
|
|
53
|
59
|
{
|
54
|
|
- path: '/table',
|
|
60
|
+ path: '/form',
|
55
|
61
|
component: Layout,
|
56
|
|
- redirect: '/table/index',
|
57
|
|
- children: [{
|
58
|
|
- path: 'index',
|
59
|
|
- name: 'Table',
|
60
|
|
- component: _import('table/index'),
|
61
|
|
- meta: { title: 'Table', icon: 'table' }}
|
|
62
|
+ children: [
|
|
63
|
+ {
|
|
64
|
+ path: 'index',
|
|
65
|
+ name: 'Form',
|
|
66
|
+ component: _import('form/index'),
|
|
67
|
+ meta: { title: 'Form', icon: 'form' }
|
|
68
|
+ }
|
62
|
69
|
]
|
63
|
70
|
},
|
64
|
71
|
|