From: Eduardo San Martin Morote Date: Mon, 24 Aug 2020 13:05:10 +0000 (+0200) Subject: refactor: replace spread with assign X-Git-Tag: v4.0.0-beta.8~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=71c28cf4d62101fa67f8e1efe972eeb66ca1a5c2;p=thirdparty%2Fvuejs%2Frouter.git refactor: replace spread with assign --- 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,