File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ import { scrollIntoView } from './scroll'
6
6
export function eventMixin ( proto ) {
7
7
proto . $resetEvents = function ( ) {
8
8
scrollIntoView ( this . route . path , this . route . query . id )
9
- sidebar . getAndActive ( this . router , 'nav' )
9
+
10
+ if ( this . config . loadNavbar ) {
11
+ sidebar . getAndActive ( this . router , 'nav' )
12
+ }
10
13
}
11
14
}
12
15
Original file line number Diff line number Diff line change @@ -117,7 +117,9 @@ export function renderMixin (proto) {
117
117
118
118
proto . _renderNav = function ( text ) {
119
119
text && this . _renderTo ( 'nav' , this . compiler . compile ( text ) )
120
- getAndActive ( this . router , 'nav' )
120
+ if ( this . config . loadNavbar ) {
121
+ getAndActive ( this . router , 'nav' )
122
+ }
121
123
}
122
124
123
125
proto . _renderMain = function ( text , opt = { } , next ) {
@@ -238,7 +240,9 @@ export function initRender (vm) {
238
240
}
239
241
240
242
// Add nav
241
- dom . before ( navAppendToTarget , navEl )
243
+ if ( config . loadNavbar ) {
244
+ dom . before ( navAppendToTarget , navEl )
245
+ }
242
246
243
247
if ( config . themeColor ) {
244
248
dom . $ . head . appendChild (
You can’t perform that action at this time.
0 commit comments