fix(render): Toc rendering error, fixed #106

This commit is contained in:
qingwei.li 2017-02-28 22:00:53 +08:00 • committed by cinwell.li
commit 0d59ee939f
2 changed files with 3 additions and 2 deletions

View file

@ -75,7 +75,7 @@ export function renderMixin (proto) {
this._renderTo('.sidebar-nav', sidebar(text, maxLevel))
const active = getAndActive('.sidebar-nav', true, true)
loadSidebar && subSidebar(active, subMaxLevel)
subSidebar(loadSidebar ? active : '', subMaxLevel)
// bind event
this.activeLink = active
scrollActiveSidebar()