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

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

View file

@ -143,7 +143,7 @@ export function renderMixin (proto) {
dom.toggleClass(el, 'add', 'has-mask') dom.toggleClass(el, 'add', 'has-mask')
if (!isAbsolutePath(m[1])) { 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.backgroundImage = `url(${path})`
el.style.backgroundSize = 'cover' el.style.backgroundSize = 'cover'