gancio/layouts/error.vue
2020-08-05 17:30:41 +02:00

18 lines
493 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='danger') <v-icon>mdi-warning</v-icon> An error occurred: {{error.message}}
nuxt-link(to='/') Back to home
</template>
<script>
import { mapState } from 'vuex'
export default {
props: { error: { type: Object } },
computed: mapState(['settings']),
head () {
return { title: `${this.settings.title} - Error` }
}
}
</script>