Skip to content

Commit 67c758e

Browse files
dyhpoonyyx990803
authored andcommitted
fix: home link '/' shouldn’t always stays active (#47)
1 parent f2a8229 commit 67c758e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/default-theme/NavLinks.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<!-- user links -->
44
<router-link v-for="item in userLinks"
55
:to="item.link"
6-
:key="item.link">
6+
:key="item.link"
7+
:exact="item.link === '/'">
78
{{ item.text }}
89
</router-link>
910
<!-- github link -->

0 commit comments

Comments
 (0)