fix: async install config, fixed #425
This commit is contained in:
parent
ef1b42be23
commit
e4e011c81f
2 changed files with 61 additions and 59 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import {merge, hyphenate, isPrimitive, hasOwn} from './util/core'
|
||||
|
||||
export default function () {
|
||||
const config = merge(
|
||||
{
|
||||
el: '#app',
|
||||
|
|
@ -65,4 +66,5 @@ if (script) {
|
|||
|
||||
window.$docsify = config
|
||||
|
||||
export default config
|
||||
return config
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import {isFn} from '../util/core'
|
|||
export function initMixin(proto) {
|
||||
proto._init = function () {
|
||||
const vm = this
|
||||
vm.config = config || {}
|
||||
vm.config = config()
|
||||
|
||||
initLifecycle(vm) // Init hooks
|
||||
initPlugin(vm) // Install plugins
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue