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