mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
fix: lint
This commit is contained in:
parent
46261572e3
commit
b764b6e32c
@ -130,7 +130,6 @@ export default class Renderer {
|
||||
}
|
||||
|
||||
const fileName = basename(filePath)
|
||||
const parentPath = cwd(filePath, '../..')
|
||||
|
||||
await this._loadFile(cwd(filePath, '../..', fileName))
|
||||
}
|
||||
|
||||
@ -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'
|
||||
|
||||
@ -18,7 +18,7 @@ export class History {
|
||||
this.config = config
|
||||
}
|
||||
|
||||
getBasePath() {
|
||||
getBasePath () {
|
||||
return this.config.basePath
|
||||
}
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ export class HashHistory extends History {
|
||||
this.mode = 'hash'
|
||||
}
|
||||
|
||||
getBasePath() {
|
||||
getBasePath () {
|
||||
const path = window.location.pathname || ''
|
||||
const base = this.config.basePath
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user