export default defineNuxtRouteMiddleware(() => { const { $mitt } = useNuxtApp() $mitt.emit('startLoading', true) })