From bdcd9de4a2306700891bdff43bb46bfee574adbc Mon Sep 17 00:00:00 2001 From: yluoyu <750150755@qq.com> Date: Sat, 20 Jan 2018 15:33:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E5=AF=BC=E8=87=B4=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E4=B8=8D=E6=AD=A3=E7=A1=AE=E9=97=AE=E9=A2=98=20(#353)?= =?UTF-8?q?=20(#358)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/event/sidebar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/event/sidebar.js b/src/core/event/sidebar.js index 7a20d7aa..dd6d31a6 100644 --- a/src/core/event/sidebar.js +++ b/src/core/event/sidebar.js @@ -51,7 +51,7 @@ export function getAndActive (router, el, isParent, autoTitle) { el = dom.getNode(el) const links = dom.findAll(el, 'a') - const hash = router.toURL(router.getCurrentPath()) + const hash = decodeURI(router.toURL(router.getCurrentPath())) let target links.sort((a, b) => b.href.length - a.href.length).forEach(a => {