Copy location object
This commit is contained in:
parent
13a31c30d9
commit
c566d5d61d
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ function match(routes, location) {
|
||||||
for (let j = 0; j < keys.length; j++) {
|
for (let j = 0; j < keys.length; j++) {
|
||||||
params[keys[j]] = decodeURIComponent(params[keys[j]]);
|
params[keys[j]] = decodeURIComponent(params[keys[j]]);
|
||||||
}
|
}
|
||||||
return locationChanged(routes[i].name, params, decode(location));
|
return locationChanged(routes[i].name, params, decode({ ...location }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue