fix: lint

This commit is contained in:
qingwei.li 2017-05-30 06:34:16 +08:00
commit b764b6e32c
No known key found for this signature in database
GPG key ID: B6DDC2F7AE80B2F4
4 changed files with 3 additions and 4 deletions

View file

@ -18,7 +18,7 @@ export class History {
this.config = config
}
getBasePath() {
getBasePath () {
return this.config.basePath
}

View file

@ -20,7 +20,7 @@ export class HashHistory extends History {
this.mode = 'hash'
}
getBasePath() {
getBasePath () {
const path = window.location.pathname || ''
const base = this.config.basePath