From 71c28cf4d62101fa67f8e1efe972eeb66ca1a5c2 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 24 Aug 2020 15:05:10 +0200 Subject: [PATCH] refactor: replace spread with assign --- src/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.ts b/src/router.ts index 9850dd8e..31d70247 100644 --- a/src/router.ts +++ b/src/router.ts @@ -243,7 +243,7 @@ export function createRouter(options: RouterOptions): Router { ): RouteLocation & { href: string } { // const objectLocation = routerLocationAsObject(rawLocation) // we create a copy to modify it later - currentLocation = { ...(currentLocation || currentRoute.value) } + currentLocation = assign({}, currentLocation || currentRoute.value) if (typeof rawLocation === 'string') { let locationNormalized = parseURL( parseQuery, -- 2.47.3