Skip to content

Commit

Permalink
fix: path include chinese character cause hilight bug (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
hxh authored and QingWei-Li committed Jun 29, 2018
1 parent 7dcebe7 commit a5f333a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/event/scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5f333a

Please sign in to comment.