fix: lint
This commit is contained in:
parent
46261572e3
commit
b764b6e32c
4 changed files with 3 additions and 4 deletions
|
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ export class History {
|
||||||
this.config = config
|
this.config = config
|
||||||
}
|
}
|
||||||
|
|
||||||
getBasePath() {
|
getBasePath () {
|
||||||
return this.config.basePath
|
return this.config.basePath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ export class HashHistory extends History {
|
||||||
this.mode = 'hash'
|
this.mode = 'hash'
|
||||||
}
|
}
|
||||||
|
|
||||||
getBasePath() {
|
getBasePath () {
|
||||||
const path = window.location.pathname || ''
|
const path = window.location.pathname || ''
|
||||||
const base = this.config.basePath
|
const base = this.config.basePath
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue