fix(render): disable rendering sub list when loadSidebar is false
This commit is contained in:
parent
be6dcacde7
commit
35dd2e16fa
1 changed files with 2 additions and 2 deletions
|
|
@ -53,11 +53,11 @@ export function renderMixin (proto) {
|
|||
}
|
||||
|
||||
proto._renderSidebar = function (text) {
|
||||
const { maxLevel, subMaxLevel, autoHeader } = this.config
|
||||
const { maxLevel, subMaxLevel, autoHeader, loadSidebar } = this.config
|
||||
|
||||
this._renderTo('.sidebar-nav', sidebar(text, maxLevel))
|
||||
const active = getAndActive('.sidebar-nav', true, true)
|
||||
subSidebar(active, subMaxLevel)
|
||||
loadSidebar && subSidebar(active, subMaxLevel)
|
||||
// bind event
|
||||
this.activeLink = active
|
||||
scrollActiveSidebar()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue