@@ -34,8 +34,8 @@ export const constantRouterMap = [
34
34
hidden : true ,
35
35
children : [ {
36
36
path : 'dashboard' ,
37
- component : ( ) => import ( '@/views/dashboard/index' )
38
- } ]
37
+ component : ( ) => import ( '@/views/dashboard/index' ) ,
38
+ } ] ,
39
39
} ,
40
40
{
41
41
path : '/example' ,
@@ -48,15 +48,15 @@ export const constantRouterMap = [
48
48
path : 'table' ,
49
49
name : 'Table' ,
50
50
component : ( ) => import ( '@/views/table/index' ) ,
51
- meta : { title : 'Table' , icon : 'table' }
51
+ meta : { title : 'Table' , icon : 'table' } ,
52
52
} ,
53
53
{
54
54
path : 'tree' ,
55
55
name : 'Tree' ,
56
56
component : ( ) => import ( '@/views/tree/index' ) ,
57
- meta : { title : 'Tree' , icon : 'tree' }
58
- }
59
- ]
57
+ meta : { title : 'Tree' , icon : 'tree' } ,
58
+ } ,
59
+ ] ,
60
60
} ,
61
61
{
62
62
path : '/form' ,
@@ -66,9 +66,9 @@ export const constantRouterMap = [
66
66
path : 'index' ,
67
67
name : 'Form' ,
68
68
component : ( ) => import ( '@/views/form/index' ) ,
69
- meta : { title : 'Form' , icon : 'form' }
70
- }
71
- ]
69
+ meta : { title : 'Form' , icon : 'form' } ,
70
+ } ,
71
+ ] ,
72
72
} ,
73
73
{
74
74
path : '/gateway' ,
@@ -79,17 +79,17 @@ export const constantRouterMap = [
79
79
name : 'gateway-root' ,
80
80
component : ( ) => import ( '@/views/gateway/index' ) ,
81
81
meta : { title : 'Gateway' , icon : 'example' } ,
82
- props : { folderId : '000000000000000000000000' }
82
+ props : { folderId : '000000000000000000000000' } ,
83
83
} ,
84
84
{
85
85
path : 'folder/:folderId' ,
86
86
name : 'gateway' ,
87
87
component : ( ) => import ( '@/views/gateway/index' ) ,
88
88
meta : { title : 'Gateway' , icon : 'example' } ,
89
89
props : true ,
90
- hidden : true
91
- }
92
- ]
90
+ hidden : true ,
91
+ } ,
92
+ ] ,
93
93
} ,
94
94
{
95
95
path : '/user' ,
@@ -100,15 +100,15 @@ export const constantRouterMap = [
100
100
name : 'profile' ,
101
101
component : ( ) => import ( '@/views/users/index' ) ,
102
102
meta : { title : 'Profile' , icon : 'user' } ,
103
- props : true
104
- }
105
- ]
103
+ props : true ,
104
+ } ,
105
+ ] ,
106
106
} ,
107
- { path : '*' , redirect : '/404' , hidden : true }
107
+ { path : '*' , redirect : '/404' , hidden : true } ,
108
108
]
109
109
110
110
export default new Router ( {
111
111
// mode: 'history', //后端支持可开
112
112
scrollBehavior : ( ) => ( { y : 0 } ) ,
113
- routes : constantRouterMap
113
+ routes : constantRouterMap ,
114
114
} )
0 commit comments