Some checks failed
continuous-integration/drone/push Build is failing
- Complete GGZ Ecademy Nuxt.js user portal - Learning products browser and management - Member management interface - User authentication and roles - Multi-language support (NL/EN) - Vuex store for state management - Component-based architecture
31 lines
562 B
Vue
31 lines
562 B
Vue
<template>
|
|
<div class="container">
|
|
<h1>Error {{ error.statusCode || '' }}</h1>
|
|
<span>{{ error.message }}</span>
|
|
<NuxtLink to="/">Home page</NuxtLink>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
layout: `${process.env.CUSTOMER}Admin`,
|
|
props: {
|
|
error: {
|
|
type: Object,
|
|
default: null,
|
|
},
|
|
},
|
|
computed: {
|
|
errorMessage() {
|
|
if (this.error && this.error?.message) return this.error?.message
|
|
return 'An error occurred'
|
|
},
|
|
},
|
|
head() {
|
|
return {
|
|
title: this.errorMessage,
|
|
}
|
|
},
|
|
}
|
|
</script>
|