gancio/layouts/error.vue

19 lines
514 B
Vue
Raw Normal View History

2019-06-09 00:45:50 +02:00
<template lang='pug'>
2020-07-31 01:03:19 +02:00
v-container.p-4.text-center
v-alert(v-if="error.statusCode === 404") ¯\_()_/¯ {{error.message}}
2020-10-16 16:09:27 +02:00
v-alert(v-else type='error') <v-icon>mdi-warning</v-icon> An error occurred: {{error.message}}
2020-01-14 16:29:53 +01:00
nuxt-link(to='/') Back to home
2019-06-09 00:45:50 +02:00
</template>
<script>
2020-01-14 16:29:53 +01:00
import { mapState } from 'vuex'
2019-06-09 00:45:50 +02:00
export default {
2020-10-25 00:31:01 +02:00
props: { error: { type: Object, default: () => ({ }) } },
2020-01-14 16:29:53 +01:00
head () {
return { title: `${this.settings.title} - Error` }
2020-10-25 00:31:01 +02:00
},
computed: mapState(['settings'])
2019-06-09 00:45:50 +02:00
}
</script>