FitTrackee/fittrackee_client/src/components/Common/NotFound.vue

32 lines
562 B
Vue
Raw Normal View History

2021-09-23 16:45:57 +02:00
<template>
<Error
title="404"
:message="t(`error.NOT_FOUND.${target}`)"
:button-text="t('common.HOME')"
/>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
import Error from '@/components/Common/Error.vue'
export default defineComponent({
name: 'NotFoundView',
components: {
Error,
},
props: {
target: {
type: String,
default: 'PAGE',
},
},
setup() {
const { t } = useI18n()
return { t }
},
})
</script>