diff --git a/packages/@vuepress/theme-default/components/Page.vue b/packages/@vuepress/theme-default/components/Page.vue index 7d2cd22f43..4278cbd768 100644 --- a/packages/@vuepress/theme-default/components/Page.vue +++ b/packages/@vuepress/theme-default/components/Page.vue @@ -163,7 +163,7 @@ function resolveNext (page, items) { return find(page, items, 1) } -function resolvePageLink(linkType, { $themeConfig, $page, $route, $site, sidebarItems }) { +function resolvePageLink (linkType, { $themeConfig, $page, $route, $site, sidebarItems }) { const resolveLink = linkType === LINK_TYPES.NEXT ? resolveNext : resolvePrev // Get link config from theme diff --git a/packages/@vuepress/theme-default/components/SidebarLink.vue b/packages/@vuepress/theme-default/components/SidebarLink.vue index bc5de287d8..5183aa6f2e 100644 --- a/packages/@vuepress/theme-default/components/SidebarLink.vue +++ b/packages/@vuepress/theme-default/components/SidebarLink.vue @@ -38,7 +38,7 @@ export default { $themeLocaleConfig.sidebarDepth, $themeConfig.sidebarDepth, 1 - ].find(depth => depth !== undefined); + ].find(depth => depth !== undefined) const displayAllHeaders = $themeLocaleConfig.displayAllHeaders || $themeConfig.displayAllHeaders