20 lines
441 B
Vue
20 lines
441 B
Vue
<template>
|
|
<div>
|
|
<section>
|
|
<h2 v-if="error.statusCode === 404">Page not found</h2>
|
|
<pre v-else style="width: 100%">{{ error }}</pre>
|
|
</section>
|
|
<section>
|
|
<NuxtLink to="/">Home page</NuxtLink>
|
|
</section>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
// eslint-disable-next-line vue/require-prop-types
|
|
props: ['error'],
|
|
layout: 'error', // you can set a custom layout for the error page
|
|
}
|
|
</script>
|