2👍
You can use custom component:
Vue.component('router-link-tab', {
template: `<router-link :to="to" event="" @click.native.prevent="click">
<slot></slot>
</router-link>
`,
props: {
to: String,
},
methods:{
click: function () {
console.log(this.to)
}
}
});
Source:stackexchange.com