NotFound.vue 734 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <div
  3. id="home"
  4. class="full-width"
  5. >
  6. <header>
  7. <h1>En Français</h1>
  8. </header>
  9. <section>
  10. <h1>404 - Contenu non trouvé</h1>
  11. <code v-if="path">{{ path }}</code>
  12. </section>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'NotFound',
  18. computed: {
  19. path () {
  20. if (this.$route.query.fullpath) {
  21. return this.$route.query.fullpath
  22. } else if (this.$route.params.pathMatch) {
  23. return this.$route.params.pathMatch
  24. } else {
  25. return null
  26. }
  27. }
  28. },
  29. created () {
  30. console.log('NotFound created', this.$route)
  31. },
  32. metaInfo () {
  33. return {
  34. title: 'Not Found'
  35. }
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. </style>