NotFound.vue 852 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <MainContentLayout id="not-found" class="">
  3. <template v-slot:header>
  4. <h1>404 - Contenu non trouvé</h1>
  5. <code v-if="path">{{ path }}</code>
  6. </template>
  7. </MainContentLayout>
  8. </template>
  9. <script>
  10. import MainContentLayout from '../components/Layouts/MainContentLayout'
  11. export default {
  12. name: 'NotFound',
  13. components: {
  14. MainContentLayout
  15. },
  16. // data: () => ({
  17. // }),
  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>