From 377da36432c8fb8ca7dd59627ca51aa8b1c138ce Mon Sep 17 00:00:00 2001 From: Billyyyyy3320 Date: Fri, 11 Oct 2019 11:43:20 +0800 Subject: [PATCH] feat($theme-default): support nav config for attr of internal links --- .../theme-default/components/NavLink.vue | 15 +++++++++------ packages/docs/docs/theme/default-theme-config.md | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/@vuepress/theme-default/components/NavLink.vue b/packages/@vuepress/theme-default/components/NavLink.vue index 73872880a2..b8517b1eaa 100644 --- a/packages/@vuepress/theme-default/components/NavLink.vue +++ b/packages/@vuepress/theme-default/components/NavLink.vue @@ -3,7 +3,7 @@ class="nav-link" :to="link" @focusout.native="focusoutAction" - v-if="!isExternal(link)" + v-if="isInternal" :exact="exact" >{{ item.text }}