Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed May 29, 2017
1 parent 4626157 commit b764b6e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/docsify-server-renderer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ export default class Renderer {
}

const fileName = basename(filePath)
const parentPath = cwd(filePath, '../..')

await this._loadFile(cwd(filePath, '../..', fileName))
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/render/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/core/router/history/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class History {
this.config = config
}

getBasePath() {
getBasePath () {
return this.config.basePath
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/router/history/hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class HashHistory extends History {
this.mode = 'hash'
}

getBasePath() {
getBasePath () {
const path = window.location.pathname || ''
const base = this.config.basePath

Expand Down

0 comments on commit b764b6e

Please sign in to comment.