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 e1ba83e commit 4b52b41Copy full SHA for 4b52b41
src/history/abstract.js
@@ -48,4 +48,8 @@ export class AbstractHistory extends History {
48
this.stack = [this.current]
49
this.index = 0
50
}
51
+
52
+ getLocation () {
53
+ return '/'
54
+ }
55
src/index.js
@@ -95,8 +95,12 @@ export default class VueRouter {
95
96
97
setInitialLocation (location: RawLocation) {
98
+ const route = this.match(location)
99
if (this.history instanceof AbstractHistory) {
- this.history.setInitialRoute(this.match(location))
100
+ this.history.setInitialRoute(route)
101
102
+ if (this.app) {
103
+ this.app._route = route
104
105
106
0 commit comments