refactor: cleaned project structure

This commit is contained in:
Corentin Thomasset 2020-12-21 22:49:27 +01:00
parent c66e2097b6
commit c554017e43
No known key found for this signature in database
GPG key ID: DBD997E935996158
19 changed files with 182 additions and 200 deletions

View file

@ -6,7 +6,9 @@
<h1 v-else>
{{ otherError }}
</h1>
<NuxtLink to="/"> Home page </NuxtLink>
<NuxtLink to="/">
Home page
</NuxtLink>
</v-app>
</template>
@ -16,22 +18,22 @@ export default {
props: {
error: {
type: Object,
default: null,
},
default: null
}
},
data() {
return {
pageNotFound: '404 Not Found',
otherError: 'An error occurred',
otherError: 'An error occurred'
}
},
head() {
const title =
this.error.statusCode === 404 ? this.pageNotFound : this.otherError
return {
title,
title
}
},
}
}
</script>