Client - minor refactor
This commit is contained in:
31
fittrackee_client/src/components/Common/NotFound.vue
Normal file
31
fittrackee_client/src/components/Common/NotFound.vue
Normal file
@ -0,0 +1,31 @@
|
||||
<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>
|
Reference in New Issue
Block a user