/** * Redéfinit le comportement du router quand on navigue vers une ancre */ export default defineNuxtPlugin(({ $router }) => { $router.options.scrollBehavior = (to: { hash: any}, from: any, savedPosition: any) => { if (to.hash) { return { el: to.hash, top: 30, behavior: 'smooth' } } } })