Copy location object
This commit is contained in:
parent
13a31c30d9
commit
c566d5d61d
@ -69,7 +69,7 @@ function match(routes, location) {
|
||||
for (let j = 0; j < keys.length; 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;
|
||||
|
Loading…
Reference in New Issue
Block a user