feat: page titles

This commit is contained in:
Jannat Patel
2024-03-19 12:04:58 +05:30
parent cc07dd849c
commit 86748b301d
6 changed files with 49 additions and 6 deletions

View File

@@ -112,6 +112,7 @@ import { createListResource, Breadcrumbs, Tabs, Badge, Button } from 'frappe-ui'
import CourseCard from '@/components/CourseCard.vue'
import { Plus } from 'lucide-vue-next'
import { ref, computed, inject } from 'vue'
import { updateDocumentTitle } from '@/utils'
const user = inject('$user')
const courses = createListResource({
@@ -163,4 +164,13 @@ if (user.data) {
})
}
}
const pageMeta = computed(() => {
return {
title: 'Courses',
description: 'All Courses divided by categories',
}
})
updateDocumentTitle(pageMeta)
</script>