From fb8a162ef0ecfcde9991789f81abf6d7eab786bb Mon Sep 17 00:00:00 2001 From: ludanxer Date: Mon, 3 Feb 2020 20:39:09 +0800 Subject: [PATCH] fix: decode router hash --- packages/@vuepress/theme-default/util/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vuepress/theme-default/util/index.js b/packages/@vuepress/theme-default/util/index.js index fbf641635b..54b9e77a53 100644 --- a/packages/@vuepress/theme-default/util/index.js +++ b/packages/@vuepress/theme-default/util/index.js @@ -43,7 +43,7 @@ export function ensureExt (path) { } export function isActive (route, path) { - const routeHash = route.hash + const routeHash = decodeURIComponent(route.hash) const linkHash = getHash(path) if (linkHash && routeHash !== linkHash) { return false