@@ -7,7 +7,7 @@ import { callHook } from '../init/lifecycle';
77import { getAndActive , sticky } from '../event/sidebar' ;
88import { getPath , isAbsolutePath } from '../router/util' ;
99import { isMobile , inBrowser } from '../util/env' ;
10- import { isPrimitive } from '../util/core' ;
10+ import { isPrimitive , merge } from '../util/core' ;
1111import { scrollActiveSidebar } from '../event/scroll' ;
1212import { Compiler } from './compiler' ;
1313import * as tpl from './tpl' ;
@@ -116,10 +116,10 @@ function renderMain(html) {
116116
117117 // vueMounts
118118 vueMountData . push (
119- ...Object . entries ( docsifyConfig . vueMounts || { } )
120- . map ( ( [ cssSelector , vueConfig ] ) => [
119+ ...Object . keys ( docsifyConfig . vueMounts || { } )
120+ . map ( cssSelector => [
121121 dom . find ( markdownElm , cssSelector ) ,
122- vueConfig ,
122+ docsifyConfig . vueMounts [ cssSelector ] ,
123123 ] )
124124 . filter ( ( [ elm , vueConfig ] ) => elm )
125125 ) ;
@@ -169,10 +169,7 @@ function renderMain(html) {
169169 } )
170170 . map ( elm => {
171171 // Clone global configuration
172- const vueConfig = Object . assign (
173- { } ,
174- docsifyConfig . vueGlobalOptions || { }
175- ) ;
172+ const vueConfig = merge ( { } , docsifyConfig . vueGlobalOptions || { } ) ;
176173
177174 // Replace vueGlobalOptions data() return value with shared data object.
178175 // This provides a global store for all Vue instances that receive
0 commit comments