fix: path include chinese character cause hilight bug (#556)
This commit is contained in:
parent
7dcebe7544
commit
a5f333a329
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue