提交 25777e45 编写于 作者: K Kid 提交者: Sarah Dayan

fix: add missing hash in #1706 (#1780)

上级 120d8858
...@@ -37,7 +37,8 @@ export default { ...@@ -37,7 +37,8 @@ export default {
'facetFilters': [`lang:${lang}`].concat(algoliaOptions.facetFilters || []) 'facetFilters': [`lang:${lang}`].concat(algoliaOptions.facetFilters || [])
}, algoliaOptions), }, algoliaOptions),
handleSelected: (input, event, suggestion) => { handleSelected: (input, event, suggestion) => {
this.$router.push(new URL(suggestion.url).pathname) const { pathname, hash } = new URL(suggestion.url)
this.$router.push(`${pathname}${hash}`)
} }
} }
)) ))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册