refactor(router): clean global api
This commit is contained in:
parent
2c7041c8fb
commit
8741c746df
12 changed files with 46 additions and 126 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue