diff --git a/src/router.js b/src/router.js index 393708e42..8832eaf9a 100644 --- a/src/router.js +++ b/src/router.js @@ -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, }; } });