We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac80bc commit 598e979Copy full SHA for 598e979
src/router-service.ts
@@ -283,6 +283,8 @@ export class RouterService {
283
*/
284
public setCurrentRoute(route: Route): void {
285
this.currentRoute = route;
286
+
287
+ this.vm.$route = Object.assign(this.vm.$route, route);
288
}
289
290
/**
src/vue-router.common.ts
@@ -41,6 +41,13 @@ export const createRouter = (
41
proto.$routeTo = router.push.bind(router);
42
proto.$routeBack = router.back.bind(router);
43
proto.$router = router;
44
45
+ const route = (Vue as any).observable({
46
+ name: '',
47
+ path: '',
48
+ });
49
50
+ proto.$route = route;
51
52
53
if (vm.mixin) {
0 commit comments