mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +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
|
||||
if (to.path !== from.path && !to.redirectedFrom) {
|
||||
return {
|
||||
path: to.path,
|
||||
...to,
|
||||
query: {
|
||||
...to.query,
|
||||
...from.query,
|
||||
},
|
||||
params: to.params,
|
||||
};
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue