mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-15 02:14:44 +00:00
12 lines
210 B
Vue
12 lines
210 B
Vue
<template>
|
|
<h1>Async Data Error</h1>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
middleware: ['slow'],
|
|
asyncData ({ error, route }) {
|
|
error({ statusCode: 401, message: 'Not allowed here' })
|
|
}
|
|
}
|
|
</script>
|