dashboard: add custom page titles for documentation and dashboard

This commit is contained in:
Dragory 2020-05-23 23:18:28 +03:00
parent a0da739e44
commit 1b8c9b45bc
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 25 additions and 4 deletions

View file

@ -0,0 +1,13 @@
<script lang="ts">
export default {
props: ['title'],
watch: {
title: {
immediate: true,
handler() {
document.title = this.title;
},
},
},
};
</script>