Answer the question
In order to leave comments, you need to log in
Vue-meta overwrites TITLE if there are nested components, why?
By url / , a component is used where there is a nested About component that overwrites the title . It turns out that on the main page the title = "About me", instead of "Artist-ceramist". For this I am using vue-meta
<template>
<div>
<div class="welcome">
<img src="//via.placeholder.com/1920x720?text=Slide_1 1920x720" class="img-responsive">
<a href="#" class="btn btn-fill">Хочу записаться</a>
</div>
<about></about>
</div>
</template>
<script>
import About from './About'
export default {
name: 'Home',
components: { About },
metaInfo: {
title: 'Художник-керамист',
}
}
</script>
<script>
export default {
name: 'About',
metaInfo: {
title: 'Обо мне'
}
}
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question