362b3c5712
Le pattern <RouterLink v-slot="..."><a @click.prevent>...</a></RouterLink> sans le prop `custom` rend DEUX <a> imbriqués : celui de RouterLink (qui gère la navigation) + celui du slot. Notre @click.prevent sur le <a> interne bloquait le clic avant qu'il remonte au <a> externe. Résultat : clic mort. Fix : ajout du prop `custom` (RouterLink ne rend plus son <a>) + @click="navigate" (fonction fournie par le v-slot qui fait le router.push en gérant les modifier keys, le ctrl-clic, etc.). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about the recommended Project Setup and IDE Support in the Vue Docs TypeScript Guide.