File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export function createMatcher (
86
86
return _createRoute ( record , location , redirectedFrom )
87
87
} else if ( location . path ) {
88
88
location . params = { }
89
- const record = _optimizedMatcher ( location )
89
+ const record = _optimizedMatcher ( location . path , location . params )
90
90
if ( record ) {
91
91
return _createRoute ( record , location , redirectedFrom )
92
92
}
@@ -254,8 +254,8 @@ function optimizedMatcher (
254
254
}
255
255
} )
256
256
257
- function match ( location ) {
258
- const cleanPath = location . path . replace ( / \/ $ / , '' )
257
+ function match ( path , params ) {
258
+ const cleanPath = path . replace ( / \/ $ / , '' )
259
259
let staticRecord = staticMap [ cleanPath ]
260
260
261
261
if ( ! staticRecord ) {
@@ -270,7 +270,7 @@ function optimizedMatcher (
270
270
if ( staticRecord && index >= staticRecord . index ) {
271
271
break
272
272
}
273
- if ( matchRoute ( route . regex , location . path , location . params ) ) {
273
+ if ( matchRoute ( route . regex , path , params ) ) {
274
274
return route
275
275
}
276
276
}
You can’t perform that action at this time.
0 commit comments