Skip to content

Commit

Permalink
fix: add active style
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Nov 14, 2020
1 parent 0bc640f commit e23ecb2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/varlet-cli/site/pc/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<div class="varlet-site-nav">
<p v-for="item in menu" class="varlet-site-nav__item">
<span v-if="item.isTitle">{{ item.text[language] }}</span>
<router-link :to="'/' + language + '/' + item.doc" v-else>{{
item.text[language]
}}</router-link>
<router-link :to="'/' + language + '/' + item.doc" v-else>
{{ item.text[language] }}
</router-link>
</p>
</div>
<router-view />
Expand Down Expand Up @@ -129,6 +129,9 @@ body {
color: blueviolet;
}
}
.router-link-active {
color: blueviolet;
}
}
}
Expand Down

0 comments on commit e23ecb2

Please sign in to comment.