- 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
This commit is contained in:
30
layouts/error.vue
Normal file
30
layouts/error.vue
Normal file
@@ -0,0 +1,30 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user