dimanche 20 décembre 2020

In the below code, testMethod is automatically calling when the page is loaded (without user clicking on the name link). Can you please help me, How to prevent automatic navigation?

<v-data-table
:items="testData"
>
<template v-slot:item.name={"item"}>
 <a href="testMethod">
{item.name}
</a> 
</template>
</v-data-table>
<script>
methods: {
  testMethod(id) {
  //logic related to routing
  }
}
</script>

Aucun commentaire:

Enregistrer un commentaire