16 lines
361 B
Vue
16 lines
361 B
Vue
<template>
|
|
<div>
|
|
<h1 v-if="error.statusCode === 404">Page not found</h1>
|
|
<h1 v-else>An error occurred</h1>
|
|
<NuxtLink to="/">Home page</NuxtLink>
|
|
</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>
|