mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
15 lines
348 B
Vue
15 lines
348 B
Vue
<template>
|
|
<div>
|
|
<div>[...slug].vue</div>
|
|
<div>404 at {{ $route.params.slug[0] }}</div>
|
|
<div>Middleware ran: {{ !!($route.meta.override as any)?.includes('extended middleware') }}</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
definePageMeta({
|
|
middleware: ['override'],
|
|
validate: to => to.path !== '/forbidden'
|
|
})
|
|
</script>
|