From d58cde69f638ad47641c956a6618b6b3cc8e2557 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 22 Apr 2024 12:25:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20page=20title=20not=20being?= =?UTF-8?q?=20applied=20(#1544)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/HomeMixin.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/mixins/HomeMixin.js b/src/mixins/HomeMixin.js index ad24fd0b..aa58a316 100644 --- a/src/mixins/HomeMixin.js +++ b/src/mixins/HomeMixin.js @@ -34,13 +34,18 @@ const HomeMixin = { data: () => ({ searchValue: '', }), - async mounted() { - // await this.getConfigForRoute(); - }, watch: { async $route() { this.loadUpConfig(); }, + pageInfo: { + handler(newPageInfo) { + if (newPageInfo && newPageInfo.title) { + document.title = newPageInfo.title; + } + }, + immediate: true, + }, }, async created() { this.loadUpConfig();