From 3082b0a8b10dee0b45741766abb515780587c765 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 27 Jun 2018 19:24:00 +0800 Subject: [PATCH] path include chinese character cause hilight bug --- 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