File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ class Router {
116
116
for ( let route in map ) {
117
117
this . on ( route , map [ route ] )
118
118
}
119
+ return this
119
120
}
120
121
121
122
/**
@@ -136,6 +137,7 @@ class Router {
136
137
} else {
137
138
this . _addRoute ( rootPath , handler , [ ] )
138
139
}
140
+ return this
139
141
}
140
142
141
143
/**
@@ -148,6 +150,7 @@ class Router {
148
150
for ( let path in map ) {
149
151
this . _addRedirect ( path , map [ path ] )
150
152
}
153
+ return this
151
154
}
152
155
153
156
/**
@@ -160,6 +163,7 @@ class Router {
160
163
for ( let path in map ) {
161
164
this . _addAlias ( path , map [ path ] )
162
165
}
166
+ return this
163
167
}
164
168
165
169
/**
@@ -170,6 +174,7 @@ class Router {
170
174
171
175
beforeEach ( fn ) {
172
176
this . _beforeEachHooks . push ( fn )
177
+ return this
173
178
}
174
179
175
180
/**
@@ -180,6 +185,7 @@ class Router {
180
185
181
186
afterEach ( fn ) {
182
187
this . _afterEachHooks . push ( fn )
188
+ return this
183
189
}
184
190
185
191
/**
You can’t perform that action at this time.
0 commit comments