gancio/layouts/error.vue
2021-10-21 12:24:24 +02:00

19 lines
526 B
Vue

<template lang='pug'>
v-container.p-4.text-center
v-alert(v-if="error.statusCode === 404") ¯\_()_/¯ {{error.message}}
v-alert(v-else type='error') <v-icon>mdi-warning</v-icon> An error occurred: {{error.message}}
nuxt-link(to='/')
v-btn Back to home
</template>
<script>
import { mapState } from 'vuex'
export default {
props: { error: { type: Object, default: () => ({ }) } },
head () {
return { title: `${this.settings.title} - Error` }
},
computed: mapState(['settings'])
}
</script>