Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

Commit

Permalink
removes pathToComponentName a la vuepress PR#473
Browse files Browse the repository at this point in the history
  • Loading branch information
edm00se committed Jun 6, 2018
1 parent 1ae4813 commit 7374369
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .vuepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ import Vue from 'vue'
import nprogress from 'nprogress'
import Home from './Home.vue'
import Page from './Page.vue'
import { pathToComponentName } from '@app/util'
export default {
components: { Home, Page },
Expand Down Expand Up @@ -96,7 +95,7 @@ export default {
nprogress.configure({ showSpinner: false })
this.$router.beforeEach((to, from, next) => {
if (to.path !== from.path && !Vue.component(pathToComponentName(to.path))) {
if (to.path !== from.path && !Vue.component(to.name)) {
nprogress.start()
}
next()
Expand Down

0 comments on commit 7374369

Please sign in to comment.