Skip to content

Commit

Permalink
Fix active router-link matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Djuuu committed Apr 13, 2019
1 parent 87a0faa commit 05a788d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Nav.vue
@@ -1,6 +1,6 @@
<template>
<nav class="text-center font-semibold text-2xl p-4">
<router-link to="/">
<router-link to="/" :exact="$route.name !== 'calc'">
Calc
</router-link>
|
Expand All @@ -15,7 +15,7 @@
</template>

<style>
.router-link-exact-active {
.router-link-active {
@apply text-primary;
}
</style>

0 comments on commit 05a788d

Please sign in to comment.