fix(search) ignore empty link

This commit is contained in:
qingwei.li 2017-02-19 13:35:12 +08:00 committed by cinwell.li
commit 754f92ce8e
4 changed files with 13 additions and 13 deletions

View file

@ -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)
}