refactor(router): clean global api

This commit is contained in:
qingwei.li 2017-05-29 19:55:28 +08:00 committed by cinwell.li
commit 8741c746df
12 changed files with 46 additions and 126 deletions

View file

@ -138,9 +138,9 @@ function updateNoData (text, path) {
}
}
export function init (opts) {
export function init (opts, vm) {
dom = Docsify.dom
const keywords = Docsify.route.parse().query.s
const keywords = vm.router.parse().query.s
style()
tpl(opts, keywords)