Commit b764b6e 1 parent 4626157 commit b764b6e Copy full SHA for b764b6e
File tree 4 files changed +3
-4
lines changed
packages/docsify-server-renderer
4 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,6 @@ export default class Renderer {
130
130
}
131
131
132
132
const fileName = basename ( filePath )
133
- const parentPath = cwd ( filePath , '../..' )
134
133
135
134
await this . _loadFile ( cwd ( filePath , '../..' , fileName ) )
136
135
}
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ export function renderMixin (proto) {
143
143
144
144
dom . toggleClass ( el , 'add' , 'has-mask' )
145
145
if ( ! isAbsolutePath ( m [ 1 ] ) ) {
146
- path = getPath ( vm . router . getBasePath ( ) , m [ 1 ] )
146
+ path = getPath ( this . router . getBasePath ( ) , m [ 1 ] )
147
147
}
148
148
el . style . backgroundImage = `url(${ path } )`
149
149
el . style . backgroundSize = 'cover'
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export class History {
18
18
this . config = config
19
19
}
20
20
21
- getBasePath ( ) {
21
+ getBasePath ( ) {
22
22
return this . config . basePath
23
23
}
24
24
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class HashHistory extends History {
20
20
this . mode = 'hash'
21
21
}
22
22
23
- getBasePath ( ) {
23
+ getBasePath ( ) {
24
24
const path = window . location . pathname || ''
25
25
const base = this . config . basePath
26
26
You can’t perform that action at this time.
0 commit comments