parent
2ec74e3a8d
commit
bdcd9de4a2
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ export function getAndActive (router, el, isParent, autoTitle) {
|
||||||
el = dom.getNode(el)
|
el = dom.getNode(el)
|
||||||
|
|
||||||
const links = dom.findAll(el, 'a')
|
const links = dom.findAll(el, 'a')
|
||||||
const hash = router.toURL(router.getCurrentPath())
|
const hash = decodeURI(router.toURL(router.getCurrentPath()))
|
||||||
let target
|
let target
|
||||||
|
|
||||||
links.sort((a, b) => b.href.length - a.href.length).forEach(a => {
|
links.sort((a, b) => b.href.length - a.href.length).forEach(a => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue