Nuxt/test/fixtures/basic/pages/error.vue

15 lines
202 B
Vue
Raw Normal View History

2016-12-20 18:25:51 +00:00
<template>
<h1>Error page</h1>
</template>
<script>
export default {
2017-10-31 13:26:19 +00:00
asyncData({ req }) {
2017-04-14 10:06:40 +00:00
// Not for nuxt generate
if (req) {
throw new Error('Error mouahahah')
}
2016-12-20 18:25:51 +00:00
}
}
</script>