Nuxt/examples/with-apollo/layouts/error.vue

14 lines
264 B
Vue
Raw Normal View History

2017-04-11 18:36:20 +00:00
<template>
<div class="container">
<h3 v-if="error.statusCode === 404">Page not found</h3>
<h3 v-else>An error occured</h3>
<nuxt-link to="/">&larr; Home page</nuxt-link>
</div>
</template>
<script>
export default {
props: ['error']
}
</script>