1
0
mirror of https://github.com/nuxt/nuxt.git synced 2024-12-04 11:27:13 +00:00
Nuxt/test/fixtures/basic/pages/navigation/middleware-asyncData-error.vue

12 lines
210 B
Vue
Raw Normal View History

<template>
<h1>Async Data Error</h1>
</template>
<script>
export default {
middleware: ['slow'],
asyncData ({ error, route }) {
error({ statusCode: 401, message: 'Not allowed here' })
}
}
</script>