chore: migrate to script setup style

This commit is contained in:
2024-02-02 18:55:45 +01:00
parent d1bcaf423f
commit 171e1039a7
15 changed files with 3468 additions and 4540 deletions
+8 -15
View File
@@ -2,20 +2,13 @@
<filters />
</template>
<script>
import Filters from '../components/pages/filters'
import { useTranslation } from '../plugins/i18n'
<script setup lang='ts'>
import { useHead } from '@unhead/vue'
import Filters from '../components/pages/filters/index.vue'
import { useTranslation } from '~/plugins/i18n'
export default {
name: 'FiltersPage',
components: {
Filters
},
head () {
const { t } = useTranslation()
return {
title: t('filters.title')
}
}
}
const { t } = useTranslation()
useHead({
title: t('filters.title')
})
</script>