🐛 Fix page title not being applied (#1544)

This commit is contained in:
Alicia Sykes 2024-04-22 12:25:09 +01:00
parent f68d65264c
commit d58cde69f6

View File

@ -34,13 +34,18 @@ const HomeMixin = {
data: () => ({ data: () => ({
searchValue: '', searchValue: '',
}), }),
async mounted() {
// await this.getConfigForRoute();
},
watch: { watch: {
async $route() { async $route() {
this.loadUpConfig(); this.loadUpConfig();
}, },
pageInfo: {
handler(newPageInfo) {
if (newPageInfo && newPageInfo.title) {
document.title = newPageInfo.title;
}
},
immediate: true,
},
}, },
async created() { async created() {
this.loadUpConfig(); this.loadUpConfig();