fix:修复中文文件名导致侧边栏不正确问题 (#353) (#358)

This commit is contained in:
yluoyu 2018-01-20 15:33:15 +08:00 committed by cinwell.li
parent 2ec74e3a8d
commit bdcd9de4a2

View File

@ -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 => {