From ceccca3dd7d78d268ebd2b32931c27ac48b4c0bd Mon Sep 17 00:00:00 2001 From: meteorlxy Date: Tue, 3 Dec 2019 16:30:00 +0800 Subject: [PATCH] fix($theme-default): use alias for nested SidebarLinks (close #2049) --- packages/@vuepress/theme-default/components/SidebarGroup.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vuepress/theme-default/components/SidebarGroup.vue b/packages/@vuepress/theme-default/components/SidebarGroup.vue index da7b5e8f14..32f2ce232c 100644 --- a/packages/@vuepress/theme-default/components/SidebarGroup.vue +++ b/packages/@vuepress/theme-default/components/SidebarGroup.vue @@ -63,7 +63,7 @@ export default { components: { DropdownTransition }, // ref: https://vuejs.org/v2/guide/components-edge-cases.html#Circular-References-Between-Components beforeCreate () { - this.$options.components.SidebarLinks = require('./SidebarLinks.vue').default + this.$options.components.SidebarLinks = require('@theme/components/SidebarLinks.vue').default }, methods: { isActive } }