Nuxt/test/fixtures/basic/middleware/sets-layout.ts

5 lines
140 B
TypeScript
Raw Permalink Normal View History

export default defineNuxtRouteMiddleware(async () => {
await new Promise(resolve => setTimeout(resolve, 10))
setPageLayout('custom')
})