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 de0d97d commit b14f7c8Copy full SHA for b14f7c8
src/history/abstract.js
@@ -7,8 +7,8 @@ export class AbstractHistory extends History {
7
index: number;
8
stack: Array<Route>;
9
10
- constructor (router: VueRouter) {
11
- super(router)
+ constructor (router: VueRouter, base: ?string) {
+ super(router, base)
12
this.stack = []
13
this.index = -1
14
}
src/index.js
@@ -48,7 +48,7 @@ export default class VueRouter {
48
this.history = new HashHistory(this, options.base, this.fallback)
49
break
50
case 'abstract':
51
- this.history = new AbstractHistory(this)
+ this.history = new AbstractHistory(this, options.base)
52
53
default:
54
process.env.NODE_ENV !== 'production' && assert(false, `invalid mode: ${mode}`)
0 commit comments