mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-09 05:16:06 +10:00
fix: path include chinese character cause hilight bug (#556)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user