Vue-router creates class

wants to add the active class to the outer dom (indicated by the arrow), but it always creates a new div and then adds class. What should I do with this?

Mar.30,2021

< router-link to= "/ pj-l-t c" class= "j-l-t" > menu < / router-link >


can't you add the style you want to router-link?

<router-link :to="url" class="defaultClass" :class="{'router-link-exact-active': active}">
  <div class="icon"></div>
  <span>{{title}}</span>
</router-link>
Menu