how to make @click in router-link vuejs

<template>
  <router-link :to="{ name: 'yourRouteName' }" tag="button" @click="handleClick">
    Click me
  </router-link>
</template>

<script>
export default {
  methods: {
    handleClick() {
      // Your click logic here
      console.log('Button clicked!');
    }
  }
}
</script>

Replace 'yourRouteName' with the name of the route you want to navigate to.