mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
fix: path include chinese character cause hilight bug (#556)
This commit is contained in:
parent
7dcebe7544
commit
a5f333a329
@ -53,7 +53,7 @@ function highlight(path) {
|
||||
if (!last) {
|
||||
return
|
||||
}
|
||||
const li = nav[getNavKey(path, last.getAttribute('data-id'))]
|
||||
const li = nav[getNavKey(decodeURIComponent(path), last.getAttribute('data-id'))]
|
||||
|
||||
if (!li || li === active) {
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user