refactor(core): adjust directory structure:
This commit is contained in:
parent
e07d36f44e
commit
aad62b65f5
20 changed files with 381 additions and 93 deletions
13
src/core/fetch/index.js
Normal file
13
src/core/fetch/index.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { callHook } from '../init/lifecycle'
|
||||
|
||||
export function fetchMixin (Docsify) {
|
||||
Docsify.prototype.$fetch = function () {
|
||||
}
|
||||
}
|
||||
|
||||
export function initFetch (vm) {
|
||||
vm.$fetch(result => {
|
||||
vm.$resetEvents()
|
||||
callHook(vm, 'doneEach')
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue