File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const config = merge({
15
15
themeColor : '' ,
16
16
nameLink : window . location . pathname ,
17
17
autoHeader : false ,
18
- executeScript : false ,
18
+ executeScript : null ,
19
19
ga : ''
20
20
} , window . $docsify )
21
21
Original file line number Diff line number Diff line change @@ -28,9 +28,8 @@ function renderMain (html) {
28
28
this . _renderTo ( '.markdown-section' , html )
29
29
// Render sidebar with the TOC
30
30
! this . config . loadSidebar && this . _renderSidebar ( )
31
- // execute script
32
- this . config . executeScript && executeScript ( )
33
31
32
+ // execute script
34
33
if ( this . config . executeScript !== false &&
35
34
typeof window . Vue !== 'undefined' &&
36
35
! executeScript ( ) ) {
@@ -39,6 +38,8 @@ function renderMain (html) {
39
38
vueVM && vueVM . $destroy && vueVM . $destroy ( )
40
39
window . __EXECUTE_RESULT__ = new window . Vue ( ) . $mount ( '#main' )
41
40
} , 0 )
41
+ } else {
42
+ this . config . executeScript && executeScript ( )
42
43
}
43
44
44
45
if ( this . config . auto2top ) {
You can’t perform that action at this time.
0 commit comments