1
- /* global VUEPRESS_TEMP_PATH, CONTENT_LOADING */
1
+ /* global VUEPRESS_TEMP_PATH */
2
2
import Vue from 'vue'
3
3
import Router from 'vue-router'
4
4
import dataMixin from './dataMixin'
@@ -10,7 +10,6 @@ import ClientComputedMixin from '@transform/ClientComputedMixin'
10
10
import VuePress from './plugins/VuePress'
11
11
12
12
// built-in components
13
- import LoadableContent from './components/Content.vue'
14
13
import Content from './components/Content.js'
15
14
import ContentSlotsDistributor from './components/ContentSlotsDistributor'
16
15
import OutboundLink from './components/OutboundLink.vue'
@@ -36,12 +35,8 @@ Vue.use(VuePress)
36
35
// mixin for exposing $site and $page
37
36
Vue . mixin ( dataMixin ( ClientComputedMixin , siteData ) )
38
37
// component for rendering markdown content and setting title etc.
39
- if ( CONTENT_LOADING ) {
40
- Vue . component ( 'Content' , LoadableContent )
41
- } else {
42
- Vue . component ( 'Content' , Content )
43
- }
44
38
39
+ Vue . component ( 'Content' , Content )
45
40
Vue . component ( 'ContentSlotsDistributor' , ContentSlotsDistributor )
46
41
Vue . component ( 'OutboundLink' , OutboundLink )
47
42
// component for client-only content
@@ -67,6 +62,9 @@ export function createApp (isServer) {
67
62
if ( savedPosition ) {
68
63
return savedPosition
69
64
} else if ( to . hash ) {
65
+ if ( Vue . $vuepress . $get ( 'disableScrollBehavior' ) ) {
66
+ return false
67
+ }
70
68
return {
71
69
selector : to . hash
72
70
}
0 commit comments