mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
Fix CI 404 should display error
This commit is contained in:
parent
ef5ebd0417
commit
1e56eae2cf
13
examples/with-apollo/layouts/error.vue
Normal file
13
examples/with-apollo/layouts/error.vue
Normal file
@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<h3 v-if="error.statusCode === 404">Page not found</h3>
|
||||
<h3 v-else>An error occured</h3>
|
||||
<nuxt-link to="/">← Home page</nuxt-link>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['error']
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user