Newer
Older
<v-container align-center d-flex fill-height justify-space-around>
<v-row class="justify-center">
<h1 class="text-h1 justify-start">
{{ errorMsg }}
</h1>
</v-row>
<NuxtLink to="/" class="text-h4"> Home page </NuxtLink>
</v-container>
</v-app>
</template>
<script>
export default {
props: {
error: {
type: Object,
default: null,
},
},
data() {
return {
errorMsg: `${
this.error.statusCode === 404 ? "404 Not Found" : "An error occured"
}`,
pageNotFound: "404 Not Found",
otherError: "An error occurred",
};
},
head() {