Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/history/abstract.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export class AbstractHistory extends History {
index: number;
stack: Array<Route>;

constructor (router: VueRouter) {
super(router)
constructor (router: VueRouter, base: ?string) {
super(router, base)
this.stack = []
this.index = -1
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down