未验证 提交 e6af68fa 编写于 作者: U ULIVZ 提交者: GitHub

fix($core): Search result cannot jump to the correct hash anchor (close: #1594) (#1599)

上级 fda5476a
import { getPageAsyncComponent } from '../util'
export default {
props: {
......@@ -10,9 +9,8 @@ export default {
},
render (h) {
const pageKey = this.pageKey || this.$parent.$page.key
const pageComponent = getPageAsyncComponent(pageKey)
if (pageComponent) {
return h(pageComponent)
if (pageKey) {
return h(pageKey)
}
return h('')
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册