mirror of
https://github.com/zhigang1992/docsify.git
synced 2026-04-22 20:39:24 +08:00
fix: lint
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user