From 7374369cb40c345d8fbe48a5c9f70e3c9bee9a61 Mon Sep 17 00:00:00 2001 From: Eric McCormick Date: Wed, 6 Jun 2018 12:08:05 -0500 Subject: [PATCH] removes pathToComponentName a la vuepress PR#473 https://github.com/vuejs/vuepress/pull/473 --- .vuepress/theme/Layout.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.vuepress/theme/Layout.vue b/.vuepress/theme/Layout.vue index e4c7c2f..6d1e1c8 100644 --- a/.vuepress/theme/Layout.vue +++ b/.vuepress/theme/Layout.vue @@ -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 }, @@ -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()