From a5f333a329aad087588b7fd60dae6d867f24f99a Mon Sep 17 00:00:00 2001 From: hxh <13641248047@qq.com> Date: Fri, 29 Jun 2018 21:18:37 +0800 Subject: [PATCH] fix: path include chinese character cause hilight bug (#556) --- src/core/event/scroll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/event/scroll.js b/src/core/event/scroll.js index a7f08d7b6..762d949f7 100644 --- a/src/core/event/scroll.js +++ b/src/core/event/scroll.js @@ -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