Skip to content

Commit a5f333a

Browse files
hxhQingWei-Li
hxh
authored andcommitted
fix: path include chinese character cause hilight bug (#556)
1 parent 7dcebe7 commit a5f333a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/event/scroll.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function highlight(path) {
5353
if (!last) {
5454
return
5555
}
56-
const li = nav[getNavKey(path, last.getAttribute('data-id'))]
56+
const li = nav[getNavKey(decodeURIComponent(path), last.getAttribute('data-id'))]
5757

5858
if (!li || li === active) {
5959
return

0 commit comments

Comments
 (0)