Skip to content

Commit

Permalink
Fix error when switching pages (vuejs/vuepress#1173 (comment))
Browse files Browse the repository at this point in the history
  • Loading branch information
wallslide committed Sep 12, 2019
1 parent 131ea20 commit f9154b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/.vuepress/enhanceApp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'
import pageComponents from '@internal/page-components'

export default ({
Vue, // the version of Vue being used in the VuePress app
Expand All @@ -9,4 +10,8 @@ export default ({
}) => {
Vue.use(Vuetify)
options.vuetify = new Vuetify()

for (const [name, component] of Object.entries(pageComponents)) {
Vue.component(name, component)
}
}

0 comments on commit f9154b9

Please sign in to comment.