export default defineNuxtPlugin(() => { const router = useRouter() router.beforeEach((to, from) => { const modalStore = useModalStore() if (to.path !== from.path) { modalStore.handleResetModalAll() } }) })