Set the default active class for router links

This makes the selected region in the Splatfest history dropdown appear correctly.
This commit is contained in:
Matt Isenhower 2018-08-31 10:47:46 -07:00
parent 00a9f68654
commit 5552a244e3
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@
class="font-splatoon2 is-right-tablet"
trigger-class="button is-clear font-splatoon2"
>
<router-link v-for="region in regions" class="dropdown-item" :key="region.key" :to="region.route">
<router-link v-for="region in regions" class="dropdown-item" :key="region.key" :to="region.route" exact>
{{ region.name }}
</router-link>
</DropdownBase>

View File

@ -61,6 +61,7 @@ const routes = [
const router = new VueRouter({
mode: 'history',
linkActiveClass: 'is-active',
routes,
});