From: Eduardo San Martin Morote Date: Tue, 16 Apr 2019 15:02:03 +0000 (+0200) Subject: feat: change currentLocation in router instance with user navigation X-Git-Tag: v4.0.0-alpha.0~442 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdfb56676e540ffd30d55dba6ea3b93e834744ff;p=thirdparty%2Fvuejs%2Frouter.git feat: change currentLocation in router instance with user navigation --- diff --git a/src/router.ts b/src/router.ts index 950eb2af..1f15d77d 100644 --- a/src/router.ts +++ b/src/router.ts @@ -29,6 +29,11 @@ export class Router { const matchedRoute = this.matcher.resolve(to, this.currentRoute) console.log({ to, matchedRoute }) // TODO: navigate + + this.currentRoute = { + ...to, + ...matchedRoute, + } }) }