fix: lint

This commit is contained in:
qingwei.li 2017-05-30 06:34:16 +08:00
parent 46261572e3
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

@ -130,7 +130,6 @@ export default class Renderer {
}
const fileName = basename(filePath)
const parentPath = cwd(filePath, '../..')
await this._loadFile(cwd(filePath, '../..', fileName))
}

View File

@ -143,7 +143,7 @@ export function renderMixin (proto) {
dom.toggleClass(el, 'add', 'has-mask')
if (!isAbsolutePath(m[1])) {
path = getPath(vm.router.getBasePath(), m[1])
path = getPath(this.router.getBasePath(), m[1])
}
el.style.backgroundImage = `url(${path})`
el.style.backgroundSize = 'cover'

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