fix(render): ubtitle in side bar shows undefined, fixed #182
This commit is contained in:
parent
bb793ec08e
commit
d087d5753b
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ export function renderMixin (proto) {
|
|||
this._renderTo('.sidebar-nav', this.compiler.sidebar(text, maxLevel))
|
||||
const activeEl = getAndActive(this.router, '.sidebar-nav', true, true)
|
||||
if (loadSidebar && activeEl) {
|
||||
activeEl.parentNode.innerHTML += this.compiler.subSidebar(subMaxLevel)
|
||||
activeEl.parentNode.innerHTML += (this.compiler.subSidebar(subMaxLevel) || '')
|
||||
} else {
|
||||
// reset toc
|
||||
this.compiler.subSidebar()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue