Skip to content

Commit e6af68f

Browse files
authored
fix($core): Search result cannot jump to the correct hash anchor (close: #1594) (#1599)
1 parent fda5476 commit e6af68f

File tree

1 file changed

+2
-4
lines changed
  • packages/@vuepress/core/lib/client/components

1 file changed

+2
-4
lines changed

packages/@vuepress/core/lib/client/components/Content.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { getPageAsyncComponent } from '../util'
21

32
export default {
43
props: {
@@ -10,9 +9,8 @@ export default {
109
},
1110
render (h) {
1211
const pageKey = this.pageKey || this.$parent.$page.key
13-
const pageComponent = getPageAsyncComponent(pageKey)
14-
if (pageComponent) {
15-
return h(pageComponent)
12+
if (pageKey) {
13+
return h(pageKey)
1614
}
1715
return h('')
1816
}

0 commit comments

Comments
 (0)