Fix nav highlight
This commit is contained in:
parent
24ab3d4d10
commit
7be6baae7a
1 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { load, camel2kebab, isNil, getRoute } from './util'
|
||||
import { scrollIntoView } from './event'
|
||||
import { scrollIntoView, activeLink } from './event'
|
||||
import * as render from './render'
|
||||
|
||||
const OPTIONS = {
|
||||
|
|
@ -92,7 +92,10 @@ const Docsify = function () {
|
|||
const dom = document.querySelector(OPTIONS.el) || document.body
|
||||
const replace = dom !== document.body
|
||||
const main = function () {
|
||||
mainRender(_ => scrollIntoView())
|
||||
mainRender(_ => {
|
||||
scrollIntoView()
|
||||
activeLink('nav')
|
||||
})
|
||||
}
|
||||
|
||||
// Render app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue