fix: path include chinese character cause hilight bug (#556)

This commit is contained in:
hxh
2018-06-29 21:18:37 +08:00
committed by cinwell.li
parent 7dcebe7544
commit a5f333a329
+1 -1
View File
@@ -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