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

Commit 7374369

Browse files
committed
removes pathToComponentName a la vuepress PR#473
vuejs/vuepress#473
1 parent 1ae4813 commit 7374369

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.vuepress/theme/Layout.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ import Vue from 'vue'
6161
import nprogress from 'nprogress'
6262
import Home from './Home.vue'
6363
import Page from './Page.vue'
64-
import { pathToComponentName } from '@app/util'
6564
6665
export default {
6766
components: { Home, Page },
@@ -96,7 +95,7 @@ export default {
9695
nprogress.configure({ showSpinner: false })
9796
9897
this.$router.beforeEach((to, from, next) => {
99-
if (to.path !== from.path && !Vue.component(pathToComponentName(to.path))) {
98+
if (to.path !== from.path && !Vue.component(to.name)) {
10099
nprogress.start()
101100
}
102101
next()

0 commit comments

Comments
 (0)