🐛 Fix page title not being applied (#1544)
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user