Skip to content

Commit b764b6e

Browse files
committed
fix: lint
1 parent 4626157 commit b764b6e

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

packages/docsify-server-renderer/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ export default class Renderer {
130130
}
131131

132132
const fileName = basename(filePath)
133-
const parentPath = cwd(filePath, '../..')
134133

135134
await this._loadFile(cwd(filePath, '../..', fileName))
136135
}

src/core/render/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export function renderMixin (proto) {
143143

144144
dom.toggleClass(el, 'add', 'has-mask')
145145
if (!isAbsolutePath(m[1])) {
146-
path = getPath(vm.router.getBasePath(), m[1])
146+
path = getPath(this.router.getBasePath(), m[1])
147147
}
148148
el.style.backgroundImage = `url(${path})`
149149
el.style.backgroundSize = 'cover'

src/core/router/history/base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class History {
1818
this.config = config
1919
}
2020

21-
getBasePath() {
21+
getBasePath () {
2222
return this.config.basePath
2323
}
2424

src/core/router/history/hash.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class HashHistory extends History {
2020
this.mode = 'hash'
2121
}
2222

23-
getBasePath() {
23+
getBasePath () {
2424
const path = window.location.pathname || ''
2525
const base = this.config.basePath
2626

0 commit comments

Comments
 (0)