Files
front/app.vue
T
2026-10-09 11:59:15 +10:00

28 lines
776 B
Vue

<script setup lang="ts">
/**
* Корневой компонент. Класс body задан на уровне страницы,
* потому что в исходной вёрстке главная и страница вузов различаются:
* index.html — «font-face-all», vus.html — «text-color».
* Текстовой раскраской помечаются и адресные страницы вузов /vus/<slug>.
*/
const route = useRoute();
const isVusSection = computed(
() => route.path === "/vus" || route.path.startsWith("/vus/"),
);
useHead({
bodyAttrs: {
class: computed(() =>
isVusSection.value ? "text-color" : "font-face-all",
),
},
});
</script>
<template>
<div>
<NuxtPage />
</div>
</template>