mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 08:44:04 +00:00
Modify only required parts of url
This commit is contained in:
parent
d9c626d4cc
commit
db1a980e23
1 changed files with 1 additions and 2 deletions
|
@ -205,12 +205,11 @@ router.beforeEach((to, from) => {
|
||||||
// Without this check, the router will be stuck in an infinite loop
|
// Without this check, the router will be stuck in an infinite loop
|
||||||
if (to.path !== from.path && !to.redirectedFrom) {
|
if (to.path !== from.path && !to.redirectedFrom) {
|
||||||
return {
|
return {
|
||||||
path: to.path,
|
...to,
|
||||||
query: {
|
query: {
|
||||||
...to.query,
|
...to.query,
|
||||||
...from.query,
|
...from.query,
|
||||||
},
|
},
|
||||||
params: to.params,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue