diff --git a/src/history/abstract.js b/src/history/abstract.js index 39f24c7de..b72ddefb9 100644 --- a/src/history/abstract.js +++ b/src/history/abstract.js @@ -7,8 +7,8 @@ export class AbstractHistory extends History { index: number; stack: Array; - constructor (router: VueRouter) { - super(router) + constructor (router: VueRouter, base: ?string) { + super(router, base) this.stack = [] this.index = -1 } diff --git a/src/index.js b/src/index.js index 39458cb73..d094942cf 100644 --- a/src/index.js +++ b/src/index.js @@ -48,7 +48,7 @@ export default class VueRouter { this.history = new HashHistory(this, options.base, this.fallback) break case 'abstract': - this.history = new AbstractHistory(this) + this.history = new AbstractHistory(this, options.base) break default: process.env.NODE_ENV !== 'production' && assert(false, `invalid mode: ${mode}`)