<div :class="headerClass">
computed: {
headerClass() {
return в зависимости от this.$route;
},
},
routes.forEach(({ components: { header, footer } }, i) => {
if (!header) routes[i].components.header = HeaderTemplateRetail
if (!footer) routes[i].components.footer = FooterTemplateRetail
})
{
path: "/help/vacancy/",
components: { header: HeaderTemlateVacancy, default: Vacancy, footer: FooterTemlateVacancy },
props: true,
},