[Vuejs]-How to change only specific nav active background color with condition

1👍

You can add conditional classes like so. And then I would just add a class with your desired properties:

:class="[
 this.tabid === 3 && active ? 'be_red' : ''
]"

<style>
.be_red {
  background-color:red;
}
</style>

Leave a comment