Skip to content

Commit 8f04f9a

Browse files
committed
Replace unsupported methods (IE11)
1 parent 1351d3f commit 8f04f9a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/core/render/index.js

+5-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { callHook } from '../init/lifecycle';
77
import { getAndActive, sticky } from '../event/sidebar';
88
import { getPath, isAbsolutePath } from '../router/util';
99
import { isMobile, inBrowser } from '../util/env';
10-
import { isPrimitive } from '../util/core';
10+
import { isPrimitive, merge } from '../util/core';
1111
import { scrollActiveSidebar } from '../event/scroll';
1212
import { Compiler } from './compiler';
1313
import * 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

Comments
 (0)