fix(search) ignore empty link
This commit is contained in:
parent
fcb66e8bc7
commit
754f92ce8e
4 changed files with 13 additions and 13 deletions
|
|
@ -23,7 +23,8 @@ function getAllPaths () {
|
|||
const originHref = node.getAttribute('href')
|
||||
const path = helper.route.parse(href).path
|
||||
|
||||
if (paths.indexOf(path) === -1 &&
|
||||
if (path &&
|
||||
paths.indexOf(path) === -1 &&
|
||||
!helper.route.isAbsolutePath(originHref)) {
|
||||
paths.push(path)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue