未验证 提交 61838409 编写于 作者: 大喵 提交者: GitHub

fix($theme-default): handle algolia search result with Chinese hash (close: #2431) (#2432)

上级 20e73293
......@@ -59,7 +59,8 @@ export default {
handleSelected: (input, event, suggestion) => {
const { pathname, hash } = new URL(suggestion.url)
const routepath = pathname.replace(this.$site.base, '/')
this.$router.push(`${routepath}${hash}`)
const _hash = decodeURIComponent(hash)
this.$router.push(`${routepath}${_hash}`)
}
}
))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册