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 955f377 commit 4201c9dCopy full SHA for 4201c9d
src/history/abstract.js
@@ -10,7 +10,7 @@ export class AbstractHistory extends History {
10
constructor (router: VueRouter) {
11
super(router)
12
this.stack = []
13
- this.index = 0
+ this.index = -1
14
}
15
16
push (location: RawLocation) {
@@ -31,10 +31,10 @@ export class AbstractHistory extends History {
31
if (targetIndex < 0 || targetIndex >= this.stack.length) {
32
return
33
34
- const location = this.stack[targetIndex]
35
- this.confirmTransition(location, () => {
+ const route = this.stack[targetIndex]
+ this.confirmTransition(route, () => {
36
this.index = targetIndex
37
- this.updateRoute(location)
+ this.updateRoute(route)
38
})
39
40
0 commit comments