]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
feat: change currentLocation in router instance with user navigation
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 16 Apr 2019 15:02:03 +0000 (17:02 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 16 Apr 2019 15:02:03 +0000 (17:02 +0200)
src/router.ts

index 950eb2afe97d7784a561b3ef69f5b8917ea53551..1f15d77d1fb350857dc935e04305e73f6cfd4002 100644 (file)
@@ -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,
+      }
     })
   }