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

5 lines
140 B
TypeScript
Raw Normal View History

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